You are not logged in.

#1 2012-06-02 05:03:42

raulpegan
Member
Registered: 2012-06-02
Posts: 8

Java JDK not working.

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

#2 2012-06-02 08:21:39

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: Java JDK not working.

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

#3 2012-06-02 08:27:03

raulpegan
Member
Registered: 2012-06-02
Posts: 8

Re: Java JDK not working.

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

#4 2012-06-02 13:59:31

gerald82
Member
From: The known universe
Registered: 2011-03-25
Posts: 83

Re: Java JDK not working.

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

#5 2012-06-02 20:55:01

raulpegan
Member
Registered: 2012-06-02
Posts: 8

Re: Java JDK not working.

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

#6 2012-06-02 22:22:33

raulpegan
Member
Registered: 2012-06-02
Posts: 8

Re: Java JDK not working.

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

#7 2012-06-03 01:58:41

raulpegan
Member
Registered: 2012-06-02
Posts: 8

Re: Java JDK not working.

I reinstalled the whole OS and it worked. Not sure if I should post it as [SOLVED]...

Offline

Board footer

Powered by FluxBB