Solved

NetBeans exectuion

Posted on 2004-10-07
4
195 Views
Last Modified: 2010-03-31
Howdy,

This should be easy enough, but I can't figure it out. I'm taking a course this summer in Java and didn't like the IDE that came with the book. So I went and downloaded NetBeans version 3.6. I really like this IDE, however I have one problem. I can compile my class, but when I try to execute it it only displays the following text in a window titled 'Output - Math - I/O':

java.lang.NoClassDefFoundError: UIS
Exception in thread "main"

I know this class ran fine in my other IDE. What I need it to do is run in a dos window. However I can't figure out how to configure it to do this. Any suggestions?

0
Comment
Question by:Hal9000Returns
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
TrekkyLeaper earned 100 total points
ID: 12255937
The filesystem in Netbeans acts as the classpath. Therefore, if you have a package com.my.package located in c:\dev\com\my\package, you must have c:\dev mounted as a filesystem. In your case, UIS is not in a package, so the directory that it is in must be mounted in the filesystem. A parent directory will not work.
0
 

Author Comment

by:Hal9000Returns
ID: 12258240
Thanks for the quick post, I'm at work now, but when I get home I'll take a look. As a side note I need to stop asking questions after doing homework for 5 or 6 strait hours. Summer should be fall and I mispelled execution. Oh well...
0
 

Author Comment

by:Hal9000Returns
ID: 12267415
Sorry for the delay. Mounting the filesystem worked. I would have never thought/known to do that, thanks.
0
 
LVL 5

Expert Comment

by:TrekkyLeaper
ID: 12267464
Glad I could help. =)
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now