You are not logged in.
Pages: 1
Hello! I would like to program in Java on my new Arch Linux machine, but it doesn't seem to work. When I use the terminal javac works fine and compiles the file, but when I try running it with java, it does not work. Also, when one class calls another, javac ignores the fact that both files are in the same folder, and just gives errors. Please help!
Thank you!
Offline
It would probably be inaccurate to make wild guesses.
Can you post error messages? Anything that could help narrow down your problem is helpful.
Offline
There are none. Basically when I do
$ java HelloWorld
Nothing happens. It just goes on like normal. It does compile as long as it does not require other files, like parent files. I am clueless.
Offline
Hm, sorry I have no idea then.
I just made a minimal test with 3 classes myself but can't reproduce the problem.
These are the JDK packages I have installed:
$ yaourt -Qs jdk
extra/jdk7-openjdk 7.b147_2.1-3
Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - SDK
extra/jre7-openjdk 7.b147_2.1-3
Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs -Full Java runtime
environment - needed for executing Java GUI and Webstart programs
extra/jre7-openjdk-headless 7.b147_2.1-3
Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java
runtime - needed for executing non GUI Java programs
Offline
Yes, I have exactly the same as you. I tried uninstalling and reinstalling, and still the same problem. Are there any other packages or dependencies or whatever that I should install? Or avoid for that matter?
Offline
Screw this, I've tried everything. I'm just going to do a fresh install. It's a new system so I'm not losing anything. Sad day for Raulito.
Offline
I reinstalled the whole OS and it worked. Not sure if I should post it as [SOLVED]...
Offline
Pages: 1