Ask Your Question

tenteisei1's profile - activity

2016-03-07 09:51:25 -0500 commented question java won't run

Thank you, that worked. I tried using root as a last resort. Is there any reason why it wouldn't work without changing the directory like I had?

2016-03-06 23:53:50 -0500 asked a question java won't run

Hi,

I'm new to using Fedora 23 and I'm trying to compile and run Java programs. My problem is that the program will not run, it compiles fine but when I try to run it I get an error message which says "Could not find or load main class .home.myname.Documents.Ex1_1". The commands I use to compile and run are (after entering root access):

javac /home/myname/Documents/Ex1_1.java
java /home/myname/Documents/Ex1_1
and Ex1_1.class

I've verified that openJDK is up-to-date.

Thanks