It's easy:
right-click on the project-name. Select "properties". Go to "Java Build Path". Look that "Source"-tab includes your directories for sources. Look in "Oder and Export" that your source-dir is selected.
That should be all![]()
Hello all,
I am trying it give myself a primer on j2me. Using eclipse, I get an empty jar file and a class file I cannot create a useful jar file from the class file.
I have tried this manually, I have tried this with suns wtk and the output there was also not functioning properly (it installed but didn't work)
I'm floundering here and any help would be nice. I am working up a car milage/oil change/ yada yada which I will post here once I get past the hello world issues.
Thank cytux and the rest for some great info. I hope we can update that for the current version of the eclipse j2me plug-in.
Thanks,
Matt
It's easy:
right-click on the project-name. Select "properties". Go to "Java Build Path". Look that "Source"-tab includes your directories for sources. Look in "Oder and Export" that your source-dir is selected.
That should be all![]()
Nope, not that easy.
It started off pretty nice, in that the class file was placed in the correct directory, BUT... the jar was still empty.
Arggghhh!!!!
Thanks,
Matt
With the current versions of Eclipse and eclipseME I am required to copy my compiled class into the verified directory. According to eclipseme, it looks in the resources directory and the verified directory for material with which to create the jar file.
The jad is a modified version of the master project jad, so that has to be right.
It installs now, but still doesn't run.
Soon....
Matt
Ok,
It compiles, and installs. But... it doesn't run. This is helloworld with my nifty renaming folks. Can it really be that complicated?
Would someone please look my java and explain what I'm doing wrong? The screen goes black for a moment and then returns to the program selection window.
Thanks,
Matt
try to put the things from the constructor to startApp. Didn't test it, but maybe display is not initialized at the moment the constructor is called.
Did you run it in the emulator under eclipse? If not do so and look at the console for error-messages.
Is the jad really correct? Check upper/lower again.
Or send the complete eclipse-project so we can have a look for it.
What I discovered is that the java compiles differently in Windows than in Linux.
So now I need to figure out what doesn't work on the Linux side. Jeeez I wish they would release the emulator for linux.
Ohh well, I'll have to keep wishing.
Thanks,
Matt
Helloooo All: An update...
Ok, last night I finally bit the bullet and went back and forth from SuSE to XP and back again.
The results:
In windows all is well and compiles without complaint.
In linux I get an empty jar (Manifest but no class files - unless I force the issue by placing the the class in the verified directory) and the file will install but will not run.
//HINT FOR MOTOROLA EMPLOYEES
Obviously motorola has not made this the easiest thing in the world by NOT making the J2ME (or otherwise) SDK available.
//HINT FOR MOTOROLA EMPLOYEES
Using current Motorola 5.X.X Kit and Current Eclipse and EclipseMEon both sides. Java 1.5.X on Linux and 1.4.2 on Windows (Yes, I just noticed this.)
I will next reinstall java and its world and see how that goes, but it would be nice to hear from some folks who have working, current Eclipse implimentations.
Thanks,
Matt
I'm running JDK 1.5 under Linux as well -> no problems
Maybe this Ant-Script will help you (correct the paths+++)
I'm using WTK2.2 from Sun as you can see in the build.xml