Vista cant find my java files?

I had to restart my system a while back and prior to that all my code worked fine and could compile usuing the javc command and java command to run it. Now I am confused I have set my path in environment variables and to prove it here is the full text..... %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%;c:\Program Files\java\jdk1.6.0_10\bin ok that is out of way. I wrote a basic class called Test.java and try run it or and compile it in cmd.exe and get the following...
javac: file not found
java classdefnotfound
Yet
when I use netbeans I can compile and run other programs?!?!?!?! any advice or pointers?

corlettk wrote:
Yucca,
1. Prepend the java\bin directory to your system PATH.
C:\Program Files\java\jdk1.6.0_10\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem2. ;%; Looks wrong to me.
3. Netbeans has nothing to do with command line compilation/execution.
FFS [Google it|http://java.sun.com/j2se/1.4.2/install-windows.html]... This question has been asked and answered literally thousands of times on this forum alone, hence you needlessly waited for over four hours to recieve verbatim rendition of information which you could have located yourself in milliseconds! Not mention the need suffer reading a "pointed pointer" which borders on outright abuse ;-)
I dont like your tone but will try yr suggestion.... wuould like you all to know that I googled as you stated. Tried what every site says to do, and that is append the bin address to the END of the path. Some other things that confuse me now are ...... I can succesfully do the following..... open my command line console in window and type in following javac -version. This is succesfull. I get the jkd version I have. Still cant compile any programs. Yest as stated. Netbeans can? How can Netbeans find the system path but my command line console cant? :/

Similar Messages

  • Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.

    Delete the current Firefox shortcut on the desktop and create a new desktop shortcut via the right-click context menu on the Firefox.exe program (Send to > Desktop)

  • Please i cant find my downloaded files

    i cant find my downloaded files (themes) and i tried searching the phone and i didnt see it, i thought i didnt downloaded it but when i checked app mgr it was there, i dnt know where to find it, pls help me
    Solved!
    Go to Solution.

    Themes are usually in the form of .sis installation file which will then become accessible under user interface Menu > Tools > Settings > General > Personalisation >Themes 
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • C++ - JNI on a SuSe Linux - Can't seem to find my Java files

    Hi all,
    I have been playing around with the JNI for a bit now on my windows box and got it working fine and all :) Now, however, I need to port my stuff to a SuSe linux, and I have started out really basic - just trying to start the JVM too see how that went... badly, would be the answer to that question, in case you were wondering.
    I made a really simple textbook example (alot of those, when searching this forum - and searched, I have) to just create myself a JVM. I am not even daring to actually try and find any classes, call methods or anything as bold as that yet.
    My example compiles fine, but when I run the program I get this error message:
    "Can't find class java.lang.NoClassDefFoundError. Invalid class path ?"
    Now, please note, this is not the actual NoClassDefFoundError exception being thrown here, but looks to me as if the system wanted to throw that exception object, but couldn't even find the object to throw at me ;-)
    This leads me to believe that there's is something really basic wrong with my Java setup here. I can run "java" just fine from the commandline, but it occurs to me, that the JVM, when invoked via the JNI, can't find it's own stuff.
    Any suggestion what needs to be done here?
    I can post code if that helps, but I doubt that is the problem - as it is really textbook stuff and I can get this stuff to work on Windows. I think the problem is "external" to my code, as it happens before I even try to use the JVM. Maybe some env vars needs to be set? I have manually tried to export a CLASSPATH variable, just to see if that helped - I even tried adding full path to core.jar in my "-Djava.class.path" property ;-)
    I have tried removing and adding the Java RPM's again (Java version 1.4.1 FYI) to no avail aswell.

    Hi,
    As you hv started working on JNI. You must know the following things.
    1. If you want to work on Windows they must hv to hv a .dll file of your c/C++ program while on linux you should have .so file. i.e. shared object file.
    2. On Linux you should set LD_LIBRARY_PATH environment variable to your the path where you have stored your .so file.
    Let me know if you do have above things and still getting error.
    - Uday
    P.S. You will find help on internet abt How to make dll's and .so file?

  • Cannot find standart java files in DCs. I'm confused. Please help.

    Hello SDN!
    I need to create extension which allow users attaching files to orders in order.jsp I found standart uploadform.jsp and UploadAction.java. I've create in DC crm/home/shr/ext my own action class based on UploadAction. There're some classes in my class which NWDS cannot resolve. For example, class LocaleUtil. I added import statement by hand but NWDS cannot resolve it anyway. I tried to find LocaleUtil.java via DTR but found nothing. So I don't know in which DC java file is. Now I found only LocaleUtil.class in sap.comcrmisalwcassembly.jar but I don't know how to use this jar. Also this jar contains other unresoldev classes.
    Please help me to resolve these classes.
    Regards, Lev
    Help will be appreciated.

    Hello Sateesh!
    This jar file doen't available in Libraries tab. I found them in DCs\sap.com\crm\isa\lwc\_comp\gen\default\public\assembly\lib\java (note that I haven't project sap.com/crm/isa/lwc) and try to add them in Libraries tab via button "Add external JAR". After that I try to build my DCs and get an error:
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:23: package com.sap.isa.cic.core.util does not exist
         [javac] ERROR: import com.sap.isa.cic.core.util.LocaleUtil;
         [javac] ERROR:                                  ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:24: package com.sap.isa.cic.customer.actionforms does not exist
         [javac] ERROR: import com.sap.isa.cic.customer.actionforms.UploadForm;
         [javac] ERROR:                                             ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
         [javac] ERROR: symbol  : variable LocaleUtil
         [javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
         [javac] ERROR:           String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
         [javac] ERROR:                                                               ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:47: cannot resolve symbol
         [javac] ERROR: symbol  : variable LocaleUtil
         [javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
         [javac] ERROR:           String actualCharset = LocaleUtil.getEncoding(LocaleUtil.getSAPLang(request));
         [javac] ERROR:                                        ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:52: cannot resolve symbol
         [javac] ERROR: symbol  : class UploadForm
         [javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
         [javac] ERROR:                FormFile file = ((UploadForm)form).getChosenFile();
         [javac] ERROR:                                           ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:54: cannot resolve symbol
         [javac] ERROR: symbol  : variable LocaleUtil
         [javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
         [javac] ERROR:                fileName = LocaleUtil.encodeString(fileName, inputCharset, actualCharset);
         [javac] ERROR:                                    ^
         [javac] ERROR: D:\Lev\work\workspace_dc\.dtc\2\DCs\sap.com\crm\home\shr\ext\_comp\src\packages\ru\sng\isa\isacore\action\Z_UploadFileAction.java:56: cannot resolve symbol
         [javac] ERROR: symbol  : variable LocaleUtil
         [javac] ERROR: location: class ru.sng.isa.isacore.action.Z_UploadFileAction
         [javac] ERROR:                contentType = LocaleUtil.encodeString(contentType, inputCharset, actualCharset);
         [javac] ERROR:                                       ^
         [javac] 7 errors
    After that this jar file disappear from Libraries tab. What I should to do?
    Regards, Lev

  • Cant find mozilla program files

    i have run through the mozilla page on how to allow mozilla through windows firewall when i get the end i cant find mozilla firefox in the program files to add it to the exemption list

    thank tou for answering my question i had been reading the info wrong all good now

  • Cant find converted/saved files

    Finally converted pdf to .doc, but cant find converted files.  where are they stored and how do i access them?

    Hi Chuckster12345,
    you can find the converted files at http://files.acrobat.com.
    let me know if you have any other queries.
    Regards,
    ~Pranav

  • HT1766 I cant find my music files that were on my Iphone

    How can I find my music files. I had over 300 songs and now their gone only ones left are 3 songs i had purchased in itunes.  The music was my own files from my cd collections. THey are not on my computer and they arent on my iphone any more/

    See Empty/corrupt iTunes library after upgrade/crash.
    Has anything else changed, i.e. are the rest of your documents and settings as before?
    tt2

  • Cant find converted music file using videora

    Ok after i convert a movie with videora
    It says convertion succesfull
    So i go to look for it in my documents and it doesnt show up
    I dont know hwta is wrong
    Ive even tried to change wherer the video goes after it is converted
    But i still cant find it
    I go to wherer it should be
    and it aint there
    Plzzzzzzz help

    If you are in the United States itunes store you can download previous music purchases with this article
    http://support.apple.com/kb/HT2519
    if not you will need to email the itunes store to attempt to get a regrant of the content

  • Cant find Safari preference file in Mavericks

    I upgraded to Mavericks and Safari isnt behaving right.  It won't even launch at all now and just make my MBPR system fan scream like a banchee.  I figured I could delete the preferences file and disable the exstensions for a start.  Problem is I can't launch Safari to disable the exstension.  I also can't find the pref file either.  Looked all over....
    Plz help.
    Thanks
    Greg

    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.Safari.plist
    Click Go  then move the com.apple.Safari.plist file to the trash.
    For extensions. From your Safari menu bar click Safari > Preferences > Extensions
    Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

  • MS access cant find the database file ....

    I have an issue with just one user on network where only one computer cannot access an access database and the error is "ms access can't find the database file...."
    Sometimes I can remap and get it to load, but on reboot I always get the same bad message. The other computers login as different users and access from xp based pcs through office 2007. The user in question's permissions are not the issue. So could it be that she is using a 2013 version of office from a windows 8 machine? And how fix?
    Jay
    This topic first appeared in the Spiceworks Community

    i m calling the servlet from this JSP and the code
    for it is
    <form action="/myPackage/ConnectionToDatabase"
    method="post">
    the value of the action attribute should correspond to whatever you have included in your url-mapping element as stated in the reply by jcalambra...
    there is no need for you to have /mypackage/ConnectionToDatabase...
    if <url mapping>/Servlet</url=mapping>
    then in your form, you should only have
    <form action="/Servlet" as opposed to...
    form action="/myPackage/ConnectionToDatabase"
    i think thats where the problem resides.. the web.xml needs to be properly configured and the form attributes changed to reflect the new values...
    hope this helps

  • What if my itunes cant find my orginal files?

    I am trying to download music to my new ipod touch and a window will come up saying it cannot find my orginal files. It will dowload some but not all. It will only download 57 of the 558 songs I am trying to download. Help me please!

    Change your password.
    If this fails, then contact itunes support:
    http://www.apple.com/support/contact/

  • Scanner cant find the text file??

    Hello guys,
    I have a java program that is designed to generate maze out of text files. So basically it takes a text file and uses the info to set up a maze through GUI. The program was written by my professor and i cant get it to run the text files. When i run the program a gui pops up and assks me to enter one of eight text files.
    They are labeled maze1.txt to maze8.txt
    So once i enter the file, the programs tells me that the files can not be found. I have all eight maze files saved in the source folder. So i assume i dont have to import anything. If it helps any here is how the project set up looks like in eclipse? I have to assume that i have not set up something correctly as the program should work.
    Here is the pic of my eclipse setup:
    [http://img.photobucket.com/albums/v395/merlin77/maze.jpg]
    What am i doing wrong?
    Thanks for your help,
    Edited by: Lovac on Oct 8, 2008 10:05 PM

    Sorry i should have provided more information. Here is how his constructor for Maze class looks like:
         public Maze(String fname) throws FileNotFoundException {
              Scanner sc = new Scanner(new File(fname));
              int r, c;
              r = sc.nextInt();
              c = sc.nextInt();
              m = new int[r + 2][c + 2];
              for (int j = 0; j < c + 2; j++) {
                   m[0][j] = -1;
                   m[r + 1][j] = -1;
              for (int i = 0; i < r + 2; i++) {
                   m[0] = -1;
                   m[i][c + 1] = -1;
              for (int i = 1; i <= r; i++) {
                   for (int j = 1; j <= c; j++) {
                        m[i][j] = sc.nextInt();
              sc.close();
    As you can see above the text file is just passed to constructor as a parameter, and i am thinking when i run the program and it asks me for the text file, i just give it the file name ex. "maze1.txt" and that would be the parameter to the Maze constructor. BUT then the constructor fails to find the file and from what i know that is due to files eather not being imported in the java class or because they are missing from the source folder?
    But clearly i have them in the source folder, so importing them in java class would be pointless. The compiler should be able to find them in the source folder.
    I guess i can forward this question to Professor, but i thought there was something simple that i am missing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Cant find and delete files

    Oh boy where do I start. I don't want to sound like one of these windows switchers who complains that things on a Mac seem complicated but things on my new Mac mini sure do seem so complicated.
    I've had my mini Server (2 x 1TB drives) only a little while, I'm running it alongside my Windows 7 PC which it is to replace eventually. I'm just familiarizing myself with it at present.
    The only thing I've done was to import 300Gb worth of photos/videos to the 'second' drive to have a play with iphoto, big mistake.  Iphoto constantly hangs and crashes, it cant seem to handle this amount of files so I deleted the pics/vids.  I've put nothing else on the Mac. 
    I then notice that the 'first' drive (the server drive) shows 320Gb worth of photos/videos on it?  They are the photos/vids I deleted from the second drive. How, I didn't put them there?  iphoto shows all pics/vids still there.
    I've spent hours trying to locate them, some seem to be on a dated folder: server-users-name-pictures-iphoto library-master (folder)- 2013-10-13-20131013-235601. Is this from me using Time Machine for a while? TM worked ok but the backups seemed to be getting very big so I switched it off and deleted all backups. 
    I only found the location above by taking a screenshot of a spotlight search, if I navigate in finder it only shows stuff up to 'iphoto library' nothing after. The 'iphoto library' is 75Gb but there are 300Gb in total. I've have finder set to show hidden folder.  In iphoto I put the files into trash and tried to delete them, it deleted some of them but it very easily crashes. There are some files iphoto won't let me put into trash saying it doesn't support those files and to use Aperture. (I don't have nor want Aperture).
    This is where I am now: some of the files seem to be in the dated folder above which I can't find (Finder doesn't seem very good at finding stuff). I can't delete the files from iphoto as it crashes very quick, in fact iphoto can now barely start up without crashing.  I don't know where the other 200+Gb files are but they are on the first drive. The object is simply to delete all the pics and vids on the first drive.
    No doubt one of you guys are going to show me some Mac magic to solve this problem in a flash making me look an idiot, well I'm cool with that just tell me what it is.
    Thanks in advance.

    iPhoto is, and always has been, a very cumbersome app.  That really doesn't have anything to do with Finder though. I used iPhoto way way back around version 4 or 5, before I took up "Photoshopping". I've had it on every Mac I've owned, but I don't think I've opened it since 2006. The iPhoto library takes up MASSIVE amounts of space and the bigger it gets, the harder it is to manage. Adobe Bridge does a much better job, and so does Photoshop.
    Once you get used to the ins and outs of Finder, you'll see that it's more intuitive than Explorer. Things it does that Windows may or may not ever do, like showing a complete file path from the top of window with just a right click on the title.
    And that's just a start.

  • Trying to upgrade itunes says it cant find the source file for bonjour or quicktime. so it won't update. any help?

    Trying to upgrade itunes. it says it needs the source file to upgrade bonjour and quicktime. I downloaded itunes from a website originally. So therefore, i do not have a "source file" now i try to open itunes and i get a message that says something like "action only valid for installed software. Any ideas? oh ya, and i tried to delete itunes and bonjour and quicktime to start all over but it also said it needs the source files.

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes, QuickTime and Bonjour entries and click "Remove".
    Restart the PC, and try another iTunes install. Does it go through properly this time?

Maybe you are looking for

  • Iphone and ipad Lync Client Randomly cannot sign in to Lync 2013 Server

    I have a Lync 2013 environment that will allow all clients to connect from inside and outside of the network except for ios devices. iOS devices are sometimes able to connect and sometimes not. When they are not able to sign in they receive a message

  • Icons

    Hi, I'm sorry if this is a dumb question, but I was wondering if someone could please tell me how to create an icon file?  I would like to change the icon for an application to an icon I downloaded online.  Unfortunately, the icon is a .png file inst

  • Target/Acual Comp. Tab - No data is passing

    Hi Experts, I am creating on Order in DBM 700. But the Task list information is  not appearing in the Target/Acual Comp. Tab. The Order is having Labor Value and is assigned to Task and JOb. The order is released also. Note: In our case we dont have

  • 10.6.4 Update causes DHCP Problem

    With 10.6.4, after putting the iMac to sleep with the power button and then re-awakening it, intermittently causes OS X DHCP to fail and OS X falls back to a self assigned IP. Rebooting OS X restores DHCP functionality. This did not happen prior to 1

  • When do I use the ClassLoader? Please Guide.

    Hello there, When do I need to use the ClassLoader Class? Please can some one write a small code that can explain the above class usage? Regards