Solved

NetBeans exectuion

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 84
Java DateChooser? 3 36
map related example 6 47
Running JavaFX on JDeveloper 12C 1 31
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

770 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