« Play with Compiled JavaFX Script using JavaFXPad! | Main | JavaFX Related Happenings at JavaPolis 2007 Days 2 and 3 »

December 10, 2007


coach purses

There is no exact definition of the word happiness. Happy people are happy for all sorts of reasons. The key is not wealth or physical well-being, since we find beggars, invalids and so-called failures, who are extremely happy.

Joao (John in Portuguese :P)

Hi, Jim

Actually I was able to fix the problem a few moments after my yesterday's post. What I did was precisely what you've posted, just added the argument -classpath in the compile command line and it worked perfectly. But thanks for the post, anyway.

Having this basic problem solved, i'm now trying to take JavaFX up a notch and create a daytime client applet that simply asks a remote server for the time. I works perfecly under an IDE but things get a bit messy when I run it in a browser. Security issues I guess...:S

Thanks a lot, Jim.

Jim Weaver

Joao (John),

I don't see any obvious mistakes. Is the Java class on the classpath?

Jim Weaver

Joao (John in Portuguese :P)


This is example on Java Classes with Compiled JavaFX is all pretty OK! But I'm running in a bit of a problem when I try to use this concept with my own java classes.
I import into my fx file the java class (held upon another package). Kind like this:

package my.company.whatever.fx_files;

import my.company.whatever.java_files.MyClass;
var m = new MyClass();

but when I try to compile my fx file it just doesn't seem to see that package. It displays an error that there is no such package.
What would you say that is wrong with this approach?

The comments to this entry are closed.