Skip to main content

[help] Learning Java

2 replies [Last post]
Joined: 2010-10-06

Yarr mateys! :)

I just signed up after reading about Java for quite some time.
I wanted to try myself out in Java programming for mobile phones as I figure this might be both interesting and educational.

All joke aside, I never thought that I'd, at the very beginning of my journey, hit a brick wall.

Hopefully, there are some people among you willing to read my rant and help out :)

I read several websites, tutorials, e-books and all manner of other things but not a single one started with setting up my actual Java environment :(

I downloaded Java JDK 1.6.0, JRE6, Java ME platform SDK 3.0, Java Wireless Toolkit 2.5.2, Java EE SDK 5.01..... you get the picture....

Problem might be that I actually installed half of it and it clashed together. OK, I have no problem in removing it all and installing just what I need if that's what needs to be done.
My trouble started when I couldn't execute a single HelloWorld program - I got 5-6 error messages about some classes not being defined in main or something. And I just copied and pasted the code. Most likely my environment isn't set up properly. On the other hand, not a single one of those tutorials told me how to set it up.

I browsed some forums, and figured I need to run setenv beforehand, which is not to be found on my machine. Perhaps it's that tutorial-specific environment setup, but various websites stated I need to alter PATH and set CLASSPATH and JAVA_HOME variables.

Following the logic of their example, I set up:

SET PATH=%PATH%;c:\Program Files\Java_ME_platform_SDK_3.0\bin;
SET CLASSPATH=c:\Program Files\Java_ME_platform_SDK_3.0;.;
SET JAVA_HOME=c:\Program Files\Java_ME_platform_SDK_3.0;

just to be able to continue with tutorial and dip further into Java world.
It failed.

Now I found out about Netbeans (and found section on this forum suggesting it may be outdated), QT (I believe it's a nice GUI for application design), but I have NO idea what to do next.

Don't get me wrong, I do not expect to get things served on a silver platter and get my work done for me. I AM trying to learn, but without a proper course (that I might just get :/) I'm afraid thigs don't look good for me :)

If anyone can suggest at least one of the following, I would be very grateful, and you should feel good for helping someone new enter your world :)

[1] Which environment is best for me to try and write simple apps for mobile devices?
(I assume JAVA ME, so I need to install JDK 1.6 and Java ME Platform SDK 3.0?)

[2] Which GUI, if any is best/most convenient to use? I use EditPlus, as I'm used to write my own code by hand (I used PHP/HTML a lot in the past)

[3] Which tutorial to follow? Please don't tell me to Google it :)
I tried with this one, for example, and got stuck at 'hello world' :(

[4] Any advice? I'll take it all :)

In the end - Thank you for reading this all!
I hope you survived this long :D

English is not my primary language, but with any luck there shouldn't be any nonsense present :)



It just occured to me that I might have misplaced this question in a wrong part of the forum.
If a mod reads this, please assign it to a proper location, thanks!

Message was edited by: omgpirate

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-10-06

OK, I give up.
I'll search for help elsewhere.

Joined: 2010-10-06

Doesn't really look like I'll get this answered.
Too bad :(