• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doh!

 
Griff James
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Um, I've just downloaded java 1.3.1 and Forte from the CD attached to the Java How to Program book by Deital and Deital.
I'm now baffled what the heck to do.
Any code I write using Forte fails to compile, even when copied directly from a textbook!
When I try to access java using the MSDOS prompt I get a NoClassDefFoundError, or a message about a thread.
Please feel free to have a good chortle at my expense! In mitigation I'm totally new to computing.
Any help will be gratefully received
Cheerio,
Griff

 
Martin Clausen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Griff
Sounds like a classpath problem to me. As far as I know Forte uses it's own classpath. You have to make sure that the classpath is set for in your environment - in your case windows. Try taking a look at :
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#2b
and
http://java.sun.com/docs/books/tutorial/uiswing/start/_envVariables.html
regards,
Martin
 
Griff James
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Martin, I thought no-one would reply!
I'll try these out when I get home tonight.
For now it's back to the Lloyds Law Reports and the joy of Maritime Law, until maybe, just maybe, I can escape to a shiny new career in IT!!
 
Martin Clausen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Griff James:
Thanks Martin, I thought no-one would reply!
I'll try these out when I get home tonight.
For now it's back to the Lloyds Law Reports and the joy of Maritime Law, until maybe, just maybe, I can escape to a shiny new career in IT!!

One more thing. If I was you I would consider uninstalling the Java 1.3 and Forte and download and install Java 1.4 SDK instead.
I started out using Forte but quickly reverted to a texteditor(Textpad) and a comandline. Forte hides too many details, details you will need to know sooner or later. I know a commandline looks dull and so do programs that produce text output only but starting with these tools makes it easiere to see the big picture later - or at least that is my experience.
Regards,
Martin
 
Elouise Kivineva
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's another vote for not using Forte right away.
I've had some problems with it crashing my computer & finally gave up on it (I've got the Deitel book too). Also you're just better off starting out learning to program - period. Otherwise you're learning java only as it looks though that developer environment and waste time learning to use that environment instead of concentrating 100% on java.
If you want a text editor that helps you out by at least highlighting keywords in different colors and changing tabs to spaces automatically, try shareware such as EditPro or UltraEdit32.
[ April 26, 2002: Message edited by: Elouise Kivineva ]
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yet a third vote
Seriously, if you're just learning java, you'll have enough new things coming at you without also having to figure out how to use an IDE.
In fact, using an IDE to learn java will actually make it harder, since the job of a good IDE is to hide some of the details of the language to make experienced programmers more productive.
You will only learn to use Forte, and not "java", if you start your java education with an IDE like Forte.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic