Re: Newbie Question: Help using JavaFX on Java 7 for Mac OS X 10.7.5...
piscesboy wrote:
Lew wrote:
Whatever you choose, make sure you have actually RTFMed on tools classpa=
ths.
I compiled with the -cp option and now it compiles fine...but now it fail=
s to run when I invoke:
java HelloWorld
You didn't follow my advice. Then you got a different result from what you =
wanted.
Had you followed my advice, you would have gotten the desired result.
You desire the desired result.
Therefore you should go back and follow that advice.
As a matter of courtesy to those who volunteer to help you, you should foll=
ow
the advice before complaining again, and explain why the advice didn't help=
..
I get:
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/applica=
tion/Application
Because you didn't follow the advice.
Again...this seems to be a missing class definition problem...
which leads me to believe there is a deeper flaw in how Java7 is set up i=
n my machine.
The problem is in the wetware.
Java is set up correctly. You aren't following instructions.
I followed the instructions for downloading and installing Java7 update 7=
from the Oracle website, I used the Java Preferences Application to set my=
default JDK to jdk 1.7.0 as per the instructions, but now it's having all =
these different classpath issues that do not happen when I use the standard=
Java 6 JDK from the Apple vendor as opposed to the Oracle vendor Java 7 JD=
K.
RTFM.
Really.
RTFM.
http://lmgtfy.com/?q=Java+classpath
--
Lew