How do I upgrade my java version?
Title says it all.... Can someone help me with this?
What you could do is the following:
- In your existing project, create a new file named ".replit"
- Add the following in .replit:
The first line dictates the language you want to use. The second is a series of terminal commands you want done for you. The second line I have compiles all java files, then runs Main.java. You can change this as you please.
- Don't want to use Java 8? Change "java8" to "java10" or "java11".
Hope this helps!
@amaddentcsec I tried playing around with the command line. Turns out you can't use that either, or else you get a "permission denied" message.
I know most users were moved to Java 11, but I see a few projects here on Repl.it still stuck on 1.8, so you might need to contact a mod to figure out what's up.
Alternatively, you could try forking this Java 11 repl, then copying and pasting your files into it: https://repl.it/@AbirHaque/Test#Main.java. Not exactly the most conventional way, and I really don't know if that would work, but please let me know if it does.
PS: I tried out your project on my end and it works great, so I'm now really curious about how to fix this issue.
You can't. repl.it only has one version of java. you could always download a java compiler
edit: ok nvm don't listen to me
@amaddentcsec, Thats Great! Im glad it was fixed up for you ;). About helping though... I am willing to help but I got a bunch of HW and online class. I guess you can invite me to the repl and when I have time I could check it out but I do not think I would be able to work for very long periods..