Solved

NetBeans exectuion

Posted on 2004-10-07
4
203 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 105
Cisco ASA: Java web start no go, asdm launcher no go 3 37
Setup GlassFish 4 22
spring maven example issues 3 11
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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 will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

830 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