Join Today
+ Reply to Thread
Results 1 to 9 of 9
  1. #1

    Default Java compiling issues on linux... for the A780

    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
    Attached Files Attached Files

  2. #2

    Default Re: Java compiling issues on linux... for the A780

    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

  3. #3

    Default Re: Java compiling issues on linux... for the A780

    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

  4. #4

    Default Re: Java compiling issues on linux... for the A780

    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

  5. #5

    Default Re: Java compiling issues on linux... for the A780

    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

  6. #6

    Default Re: Java compiling issues on linux... for the A780

    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.

  7. #7

    Default Re: Java compiling issues on linux... for the A780

    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

  8. #8

    Default Re: Java compiling issues on linux... for the A780

    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

  9. #9

    Default Re: Java compiling issues on linux... for the A780

    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


 
+ Reply to Thread

Similar Threads

  1. programming (compiling/interpreting) on A780
    By captain jtejur in forum Development
    Replies: 21
    Last Post: 04-22-2008, 03:58 PM
  2. Replies: 2
    Last Post: 03-03-2008, 12:28 AM
  3. JAVA application for Syncing with Linux
    By swifty in forum Java
    Replies: 20
    Last Post: 12-27-2007, 06:52 PM
  4. Java and Linux SDK
    By slicknik76 in forum A1200 General Chat
    Replies: 1
    Last Post: 10-23-2006, 05:29 AM
  5. a780 Charging Issues
    By sarumont in forum A780 General Chat
    Replies: 2
    Last Post: 01-06-2006, 10:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1