December 19, 2022, 3:52pm
writing basic program using java language
it was expected to add and remove element from linkedlist simple
but there is issue with your enbuilt java compiler code didnt run.
So try to fix yur java compiler
Steps to reproduce:
@diAryan thanks for your message.
I think you have misunderstood how to use the Java template in Replit.
.replit file looks for and runs Main. You had left an old compiled Main.class file which was repeatedly running.
I forked your code and edited the
.replit file to show the following:
compile = "javac -classpath .:target/dependency/* -d . $(find . -type f -name '*.java')"
run = "java -classpath .:target/dependency/* Linkedlist"
entrypoint = "Linkedlist.java"
hidden = ["**/*.class"]
Notice that I’ve changed Main at the end of the
run= line to
Linkedlist and the same for the following line
When I run the code now I see:
December 27, 2022, 12:10am
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.