Javac is working but not java
PLEASE HELP.
I've got a project due very soon, and I can't get very far until I can run my apps.
Thank you,
Dustin
1.
I CAN compile a single .java file if it does NOT refer to any class outside of itself.
2.
I CAN'T compile a .java file if it refers to another class outside of itself (even if it's with in the same directory.
3.
If I comment out the line that refers to an outside class then I can compile the .java file.
HOWEVER, When I run the 'java Ap00.class' command, I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: Ap00/class.
This also applies to the above part 1. I can't work the .java command no matter what.
4. Here is my
classpath:
".;C:\j2sdk1.4.1_01\lib;C:\Prog\AudioPlayer;"
Path:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Common Files\Autodesk Shared\;C:\j2sdk1.4.1_01\bin
They look alright to me.
5. Yes, this program used to run just fine. I have not altered it. Everything got screwy when I upgraded to WinXP.
6. Everything works fine inside of a an IDE like Forte.
Ap.00 compiles and runs.
It seems that the answer is right under my nose, but I just can't put it together.
Open a console window.
Type the following
echo %CLASSPATH%
The output is your class path. (Do not guess what it is. Follow the above to find out exactly.)
Your classes do NOT have packages right?
You can test a class path with the following even if there is no 'main' in the class.
java MyClass
If you run the above and you get a no class found error, then your class path is wrong. If you get a 'no main' (or it runs) then the class path is right.
This part of your classpath "C:\j2sdk1.4.1_01\lib" is non-sensical. I doubt you are putting your classes in there. And java itself uses jars and that will not pick them up. Remove it.
When you run you are in the directory where the class files are correct? Or they are in "C:\Prog\AudioPlayer"
Similar Messages
-
Still have a problem with the drivers in Windows 8 release preview, for my HP B109 a-m all-in-one, have printer working but not scanner, is there any chance of a fix before final release of Windows 8 ?.
Review my post here:
http://h30434.www3.hp.com/t5/Windows-8-Release-Preview/SOLUTION-Get-Win-7-Printer-Drivers-HP-Solutio...
And see if something similar will work for you. -
My Mac Mini doesn't recognize my Avengers DVD--it keeps saying "Supported disc not available." I've tried other DVD's which work, but not this one. itunes and everything else has been updated to the newest versions. Help? Also...It doesn't recognize the digital copy DVD.
I have ALL the exact same symptoms as on my home computer.
It sure sounds to me like something on the iPod is broken. If it's under warranty then I would send it back for repair. If not, check out some of the web repair services, such as iPodResQ etc. -
all the links in the header of any websites are not working, the cursor is not changing into pointer and no way to click on any link located at the top of any website page. I reinstalled firefox and it s the same. No problem in others browser. the tool bar is working but not the links inside any web page located between the top 300px height.
So I can t tlog into any website, i cant write an email as the compose button is located in the top of the page.. Please help, i have all my bookmarks into my firefox...Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
or gaming youtube, while call or voice recording playing - all works fine, so speakerphone is working but not on all apps. hard reset done - no changes.
iphone 4
SOLVED plugin to charger solved it - so problem was with contacts -- no idea why - phone is new - no water - no havy dust - usual using
hope will never return. ThanksWe checked it with an iPhone 5 in house multiple times and could not reproduce this Problem. Must be something specific to your device. Maybe your speakerphone volume is turned down completely?
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓ -
Hi!My 6 month old MBP 13" has suddenly stop charging.Mac is working,but not charging
Troubleshooting MagSafe adapters http://support.apple.com/kb/ts1713
If you need to pursue further you can do it on-line, start here
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
My iPad cannot connect to my internet. the internet is working but not with my ipad.
my iPad cannot connect to my internet. the internet is working but not with my ipad.
Call your ISP (Internet Service Provider) and explain them your issue, it could range from having your router configured incorrectly to having a wiring issue. Personally, I have Comcast and they are great, no issues, and awesome customer service.
Hope you get up and running ASAP -
My volume down button doesn't work on my iPhone. The UP buttown works, but not the down button. I have tried a hard reset and that didn't fix it.
Try this.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up. -
ICloud keeps asking for password but will not take it. All other devices work but not my IMac???
Exactly which password are you inputting? iCloud looks for your AppleID password.
-
Wake on Lan (works, but not always)
Iam trying to get Wak on Lan working on my iMac. It works, but not always. When I put my mac to sleep en send the magic package, my mac turns back on. But when my mac turns to sleep and I wait a few hours (the next morning), my Mac doesn't respond to the same magic packag. When I wake up the Mac by hand, and put it back to sleep again, the magic package works again en turns the mac on.
It almost looks like the mac goes into a deeper sleep mode after a few hours. Does anyone knows what could ben the reazon.mmm, It seems like my mac doesn't always turns to sleep mode. Most of the time it only turns off the screen (solid light). My energy settings are 10 minutes for the screen and 15 minutes for the mac. But after turning of the screen it never turns to sleepmode. Ecxept when I put it to sleep manualy.
Strange thing is: when the screen is turned of, shouldn't I be able to get tot my files... (I can't actualy). -
Sap xi SCENARIO source directory working ,but not working target directory
sap xi SCENARIO source directory working ,but not working target directory..
plz help meHi,
Be more specific on the problem you are facing so that the ppl here can help..
looks like your are trying to file to file scenario and the file is not generating at the target folder ...
then check the communication logs of the receiver adapter using RWB->CC logs..
post the error you have received there..
HTH
Rajesh -
can't sync ical on my iphone and imac. email and note work but not ical. can anyone help.
thanks
bmoreimacSo how can i make it work that way, i asked one of my friends, and she says it works like that...when she delete the email on her iphone it is deleted on the mac too, what do i do to change this?....my mail it's hotmail, i don't know if its relevant
-
TS1702 facetime on my iphone works but not on my ipad
Facetime on my iPhone 4S works but not on my iPad (3rd or 4th Gen)
From the iPad User Guide:
To use FaceTime, you need an Apple ID and a Wi-Fi connection to the Internet. When you open
FaceTime, you may be prompted to sign in using your Apple ID, or to create a new account.
Make a FaceTime call: Tap Contacts, choose a name, then tap the phone number or email address the person uses for FaceTime.
You can also make a FaceTime call from the Contacts app.
Rotate iPad to use FaceTime in either landscape or portrait orientation. To avoid unwanted orientation changes, lock iPad in portrait orientation. See Portrait and landscape orientation on page 20. -
Just bought an iPhone 5C.. Safari is non-functional! A blank frozen screen... What gives? Safari is Apple's browser for gods sakes! Google Chrom works but not Safari? This is nuts. This is an "upgrade"?? Anyone else experiencing this? Or should I just give up and return this
Are you always like this?
First try a Reset: Hold down the home and sleep buttons, wait for the Apple logo, let go of the buttons. -
I was working with my Apple IPad 4G suddenly the sound stopped,I flipped the back of device slowly and it started to work but not properly and again stopped working.
Now it is not working even with fliping, is the problem with hardware or software?
Is any soloution to solve the problem?The Basic Troubleshooting Steps are:
Restart... Reset... Restore from Backup... Restore as New...
Restart / Reset
http://support.apple.com/kb/ht1430
Backing up, Updating and Restoring
http://support.apple.com/kb/HT1414
If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
Be sure to make an appointment first...
Maybe you are looking for
-
Not able to access HTMLDB from another server running HTTP_SERVER
Hi I had htmldb installed and running from dataabse server but then I moved APACHE server to another server. Here Apache is running from OEM 10g grid control I set up dad.conf and marvel.conf files for connection to htmldb server. Also I created marv
-
Need details for the following feilds
Hi Gurus, Need mapping feild names ECC vs BI for these feilds.. 1)Journal Header ID and Line Number 2)Journal Entry Line Description 3) Journal Entry Header ID and 4)Journal Entry Name I have a requirement to send these details details to the legacy
-
Hi all, Iam trying to use Solaris Authentication as backend.Iam using JAAS 1.0, jdk1.3.x I downloaded the tutorial from Sun's web site and changed the JAAS configuration file to use SolarisLoginModule In the code, i call the LoginContext's login() me
-
Hi The company I'm working for recently bought an XServe and I and a co-worker had the job to set it up. Almost everything went well and we are about to migrate everybody (about 30 employes) into using this new server. However, there are things we wo
-
What does error code: OSStatus = -39 mean?
I've been trying to burn some video dvds, with Adobe Encore CS5, from a disk image saved to my desktop. I keep getting the error message: OSStatus = -39. I've tried Googling it, & have come up with nothing. I called Apple. They said it may or may NOT