Problem with environment variable settings

I am using J2SDK1.4.1
I have set the classpath variables and path variables properly.
When I go to commandline c:\> and type the command "javac" I get a message as follows---
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
If I change directory to c:\j2sdk1.4.1\bin> and type javac c:\dir_name\filename.java then the file compiles but when I try to run the java file I get an error message "Exception in thread main no ClassDef Found".
How do I compile and run my java files.
Can any body help me out.

Your registry has some information in it that is in conflict with the 1.4.1 installation. Search the forums, there are some strings that address this problem of version conflicts.

Similar Messages

  • Problem with environment variables

    JAVA_HOME = C:\JBuilder9\jdk1.4
    Path = C:\oracle\product\10.1.0\Db_1\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;.;C:\oracle1\product\10.1.0\Db_3\jdbc\lib\classes12.zip
    When I run foo.java I get this error, which i believe is because of some kind
    of problem with environment variables.
    Exception in thread "main" java.lang.NoClassDefFoundError: OraThinI eliminated this path
    C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin
    just to check whether two paths of jdk bin folder is causing problem but I see no change.
    Please help

    I had solved it myself
    I am a genious :P
    Just do this
    JAVA_HOME = C:\JBuilder9\jdk1.4
    CLASSPATH = C:\oracle\product\10.1.0\Db_1\jdbc\lib\classes12.zip;.;%JAVA_HOME%\bin
    PATH= C:\oracle\product\10.1.0\Db_1\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;.;C:\oracle1\product\10.1.0\Db_3\jdbc\lib\classes12.zip;%JAVA_HOME%\bin

  • Problem with ENVIRONMENT VARIABLES in MS-DOS

    I have just installed JDK & J2EESDK under the directory C:\Program Files.
    I set my JAVA_HOME to C:\Program Files\jdkblahblah\bin
    and J2EE_HOME to C:\Program Files\j2eesdkblahblah\bin
    and CLASSPATH to %J2EE_HOME%\lib\j2ee.jar
    As you may have noticed there is a space in the directory "Program Files" and this has been giving me a lotta problems. When i try to run any batch files it doesn't recognise the classpath...Same thing happens when i try to run javac with the -classpath option.
    Even when i use full path names instead of env.variables it still has problems as it is assuming the latter part after the space(Files\j2ee..) and the one before the space(C:\Program) as two different paths....
    How do i fix this? I have a work-around but, I would like to know how to fix this thing...

    I guess that surrounding the path with quotes might help. You have windoze on your 'puter, haven't you. In case of Win2K, right click on "my computer", select "properties", select "special", and then "environment variables". There you may edit the PATH. I guess editing the classpath is also a must.
    Or, alternatively, uninstall java, and reinstall it in the root directory, without having white spaces in the path. Makes your life much easier...

  • Problem with environment variable & compiling

    G'day all,
    I'm totally confused :(
    I've set my environment detail but when I use javac the command window just does nothing. The cursor (or flashing thingo) drops to the line below and just hangs there. If i manually type in the entire path javac works fine.
    Image of my environment variable window is here:
    http://img130.imageshack.us/img130/5120/environvariables.jpg
    Using Windows 7, JDK 1.6.0_18 and latest version of Eclipse is installed.
    Second issue:
    I wrote a program using Eclipse. It all went into a package named "openagil". 3 classes in total. Class "A", "B", "C". A uses both B and C. It creates an instance of B and C. Included in each is package openagil; at the very top.
    Running in eclipse it works fine. However, how do I compile this using javac and then in turn run it? The .java files are located within a workbench folder (java) and then in the package directory (openagil). These are contained on the D drive so "d:\java\openagil" - No class variables are set as I am unsure how this is done (despite reading a few guides).
    I can do javac d:\...*.java and it'll compile all of them fine but I am then unsure how to run it. I think what I do is do java openagil.classA but this pulls up errors - an "exception in thread' error followed by a "noclassdeffound: openagil/classA" then a whole bunch of URL/Access Controller stuff.
    I understand programming fine, but configuring this is a bitch. My Java book doesn't cover installation nor does it cover packages and the

    LordMidol wrote:
    Second issue:
    I wrote a program using Eclipse. It all went into a package named "openagil". 3 classes in total. Class "A", "B", "C". A uses both B and C. It creates an instance of B and C. Included in each is package openagil; at the very top.
    Running in eclipse it works fine. However, how do I compile this using javac and then in turn run it? The .java files are located within a workbench folder (java) and then in the package directory (openagil). These are contained on the D drive so "d:\java\openagil" - No class variables are set as I am unsure how this is done (despite reading a few guides).
    I can do javac d:\...*.java and it'll compile all of them fine but I am then unsure how to run it. I think what I do is do java openagil.classA but this pulls up errors - an "exception in thread' error followed by a "noclassdeffound: openagil/classA" then a whole bunch of URL/Access Controller stuff.You need to us the -classpath (or -cp) command line option to specify where java looks for your .class files. I think it would be java -cp d:\java openagil.classAFYI class naming convention is to start with a capital letter - YourMainClass for example. It may help to go here [http://java.sun.com/javase/6/docs/technotes/tools/index.html] and go to General Information, then click on How Classes Are Found.

  • I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look

    I am having some huge problems with my colorspace settings. Every time I upload my raw files from my Canon 5D mark II or 6D the pics are perfect in color. That includes the back of my camera, the pic viewer on my macbook pro, and previews. They even look normal when I first open them in photoshop. I will edit, save, and then realize once i've sent it to myself to test the color is WAY off. This only happens in photoshop. I've read some forums and have tried different things, but it seems to be making it worse. PLEASE HELP! Even viewing the saved image on the mac's pic viewer is way off once i've edited in photoshop. I am having to adjust all my colors by emailing myself to test. Its just getting ridiculous.

    Check the color space in camera raw, the options are in the link at the bottom of the dialog box. Then when saving make sure you save it to the srgb color space when sending to others. Not all programs understand color space and or will default to srgb. That won't necessarily mean it will be accurate, but it will put it in the ballpark. Using save for web will use the srgb color space.

  • Problem with formula variable

    HI,
    I am facing problem with formula variable with replacement path. my requirement is system date - posting date.
    here i created 2 formula variable one is system date. second formula vaiable with replacement path is posting date. second formula vaiable not populating data. please help on that.
    regards,
    kris

    Hi,
    here is some idea.. here i have taken expample dates 1)notification creation date and 2) notification completion.
    1st:in the query designer at key figure coloumn create
    one local formula.in that local formula create formula
    variable with replacement path.in that take reference character
    notification completion.in the next tab take replace ment
    as key.in the last tab select "date".
    2nd: do the same thing for the notification creation date.
    3 rd : create 3 rd local formula and do the substraction
    for the first 2 local formulas.
    4th:create codition on the difference which u have find with
    on that condition u can create one user entry varibale.
    5th:while u defining the query put these 2 dates,i,e
    notification completion, notification creation date in the character block.
    If not system will ignore the formula variable which u created in
    above steps.
    Hope this wil help u.
    regards....KP

  • A Problem with Region Format Settings

    Hi!
    I have a peculiar problem with Region Format settings on my iPod touch (Settings > General > International > Region Format). It appears that iPod touch can support more region formats than it is stated on that list. Once I registered my iPod, I selected my location, Lithuania, and it automatically set (I think because of this action, and not another, like my PC settings) Region Format to Lithuanian. Although it is nonexistent on the menu list! Good news!
    However, the problem is that while I explored my iPod I accidentally checked another region, and there is no "cancel" option. So my region switched to another. And now I am not able to switch it back to Lithuanian again because there is no such selection (reset or restore didn't help).
    Has anybody any suggestions how could I return to my preferred region format (Lithuanian)? Thanks!

    thats interesting. I think the ipod took those settings from your computer/mac.
    anyway, shouldn't there be something near you that has the same region format settings? maybe you can just use something that's exactly the same.
    and btw: some of the regions have arrows next to them which brings you to subregions of that region. maybe you should check that out?
    otherwise ... well ... I think only a restore would bring back the original settings.

  • Problem with String variable

    I am new to Java Programming.
    I have a line of code that works and does what is supposed to.
    faceData.getProfile("Lisa").removeFriend("Curtis");
    If I assign the strings to variables such as-
    String name = "Lisa";
    String fName = "Curtis";
    and then plug those into the same line of code, it does not work
    faceData.getProfile(name).removeFriend(fName);
    What could be causing the problem?
    I even added some lines to print out what is stored in the variables to verify that they are what they should be, but for some reason the variables do not work while putting the strings in quotes does. Any ideas?

    I guarantee that something about your assertions are incorrect. Those variables are either not equal to the values you claim, or something else is going on. But it's not a problem with string variables versus string constants.
    Edit: My best guess in lack of a real example from you, is that the strings in question have non-printable characters in them, such as trailing spaces or line feeds.

  • TPC 2012 - Problems with shared variable

    Hi,
    I tried to program simmilar thing to this one http://zone.ni.com/devzone/cda/tut/p/id/5548 on TPC 2012. But it doesn't work.I can see that both programs on my laptop and TPC are working(I've added an additional counter with display), but I cannot see any effect on TPC when I change the value of shared variable on my laptop. I use LabView 8.6 with Touch Panel Module. My question is what are the exact steps to run such application on TPC2012? Are they the same as for TPC 2006?
    I've noticed following issues:
    1.I cannot deploy the program from Project Manager(there is an information that maybe TPC Service is not started. - I've found such information about TPC Service http://digital.ni.com/public.nsf/allkb/DE177828D27A14A48625734E00768B66 but in fact I cannot find Start » All Programs»National Instruments » NI TPC Service » NI TPC Service Manager 1.0 Does it mean, that the TPC Service is not installed and the programm with shared varibles won't be working or can I start it somehow in another way? Do I need to have TPC service installed on TPC2012?
    Until now, I've built the project and sent it through FTP to TPC(the folder was /TEMP) and then started it.
    2.Ping works OK
    Thank you in advance for any hints how to solve this problem.
    Martin

    Well no problem, but I'm frustrated with this issue... I've tested many things and nothing. Just to help someone else as I in the future, these are my sources:
    http://forums.ni.com/t5/LabVIEW/TPC-2012-Problems-with-shared-variable/m-p/1009631/highlight/false#M...
    http://digital.ni.com/public.nsf/allkb/28536DE7E2D9E98B8625770B00738920?OpenDocument
    http://zone.ni.com/reference/en-XX/help/372507B-01/lvtpcgsm/tpc_install_sharvar/
    http://zone.ni.com/reference/en-XX/help/372507C-01/lvtpcgsm/tpc_install_sharvar/
    http://digital.ni.com/public.nsf/allkb/23532363F4905EC28625727A00730B80?OpenDocument
    http://forums.ni.com/t5/FieldPoint-Family/TPC-2006-Not-Listed-in-Targets-and-Devices/td-p/566325
    http://forums.ni.com/t5/LabVIEW/MAX-can-t-detect-TPC-2106T/td-p/831524
    http://zone.ni.com/devzone/cda/tut/p/id/5868
    http://digital.ni.com/public.nsf/websearch/28B748B9697B79E18625725A00009066?OpenDocument
    http://digital.ni.com/public.nsf/websearch/D1726990DCEB82E4862570F20069C57D?OpenDocument
    http://digital.ni.com/public.nsf/allkb/3B469103BBDD4CE48625726000665B36
    I hope find some hint..
    Fabian León
    Certified LabVIEW Associate Developer

  • Help reqd on Trace with environment variables

    Hi,
    Please let me know the procedure to set trace with environment variables.
    Kindly forward any related links to this.
    regards,
    Naveen.A

    Hi Naveen,
              Go through this help documents. Hope it helps.
    http://help.sap.com/saphelp_nw04/helpdata/en/5e/4dfca06fc1ea4ea31c0c522c62cb1a/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ef/8eb899cf32416eaa452329c64acb5f/frameset.htm
    Cheers,
    Aravindhan

  • TS1559 please help me...my iphone 4s has a problem with wi-fi settings grayed out or dim

    please help me...my iphone 4s has a problem with wi-fi settings grayed out or dim

    http://support.apple.com/kb/TS1559

  • HT201177 I am having some problems with downloading, possibly settings are incorrect, esp. flashplayer upgrade will not install - i have iMac 8.1 osx v10.5.8 - processor: 3.06 ghz intel core2 duo mem: 2 gb 800 mhz ddr2 sdram

    I am having some problems with downloading, possibly settings are incorrect, esp. flashplayer upgrade will not install - i have iMac 8.1 osx v10.5.8 - processor: 3.06 ghz intel core2 duo mem: 2 gb 800 mhz ddr2 sdram - i am considering making an appt with Apple store nearby since we have a few in vicinity but thought i would give the online support a try.

    The latest version of Adobe FlashPlayer can be obtained from here:
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFl ash
    You can check here what version of Flash player you actually have installed:  http://kb2.adobe.com/cps/155/tn_15507.html
    You can check here:  http://www.adobe.com/products/flash/about/  to see which version you should install for your Mac and OS.
    You should first uninstall any previous version of Flash Player, using the uninstaller from here (make sure you use the correct one!):
    http://kb2.adobe.com/cps/909/cpsid_90906.html
    and also that you follow the instructions closely, such as closing ALL applications first before installing. You must also carry out a permission repair after installing anything from Adobe.

  • Gmail error message "We've detected a problem with your cookie settings." Tried everything...

    THIS IS THE PAGE:
    Google
    We've detected a problem with your cookie settings.
    Enable cookies
    Make sure your cookies are enabled. To enable cookies, follow these browser-specific instructions.
    Clear cache and cookies
    If you have cookies enabled but are still having trouble, clear your browser's cache and cookies.
    Adjust your privacy settings
    If clearing your cache and cookies doesn't resolve the problem, try adjusting your browser's privacy settings. If your settings are on high, manually add www.google.com to your list of allowed sites. Learn more
    ©2013 Google - Google Home - Terms of Service - Privacy Policy - Help
    i have done everything listed here so many times and nothing is fixing this. Made sure cookies were enabled, cleared cache and cookies, made sure Gmail was approved in security settings, and then as a last ditch effort, I disabled all add-ons for Firefox and still no Gmail... I was so desperate that I even re-installed ff-19 and still cannot get into my email account. What is going on here? Any help or small nudge in the correct direction would be much appreciated!

    I used the same thing used in the first link 950400...
    Firefox > Options > Options > Privacy > remove individual cookies > typed google > remove all cookies > typed gmail > remove all cookies
    restarted Firefox and now I can log into gmail...

  • Problems with /tmp variable

    Hi,
    I'm writing a shell script and I seem to be having problems with a variable that is creates a directory in the /tmp directory. Essentially, there are several points where various parts of the script call out information that gets exported to that directory. My script is failing upon creation of this directory, is there any specific permissions on the /tmp directory in mac that would need to be set before something like this occurred?
    Thanks!

    My script is failing upon creation of this directory
    Maybe you could post your code, that way we can see how you're trying to create the directory and may be able to spot the problem. As it is we're working blind, and that's not easy.

  • Demantra DP 7.1.1/11.5.10 with OAS 10.1.3 environment variable settings

    I was wondering of anyone out there is using Demantra Demand Planning with Oracle Applications Server 10.1.3 on 11.5.10.2 that is not on a Windows Platform, and what the environment variables set in opmn.xml are referring to; 9i/10g client on the Windows client host or 9i/10g client on the linux middle tier server.
    Demantra, OracleAS 10.1.3 and the E-Business Suite
    http://blogs.oracle.com/schan/2007/05/22#a1585
    Oracle Demantra Installation for Release 7.1.1
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=428495.1
    (a) Set environment variables
    In some cases, Oracle Application Server environment variables do not correspond to the default system environment variables. You must explicitly set some variables in the Oracle Application Server process in order for Oracle Demantra workflows to operate properly.
    Open Oracle Application Server file opmn\conf\opmn.xml. Go to the section <ias-component id="OC4J"> and add a section <environment> within it, for example:
    <ias-component id="OC4J">
    <environment>
    <variable id="<variablename>" value="<path>"/>
    </environment>
    <process-type id="home" ...
    <variablename>'s are PATH, ORACLE_HOME, and ORA_NLS33. Add one <variable> line for each.
    <path> is the system path plus the Oracle database client path.
    Contact Oracle Demantra support if you need further assistance.
    Here is an example <environment> section with the variables set.
    <environment>
    <variable id="PATH" value=
    "C:\OracleiAS\10.1.3\OracleAS_1\opmn\bin;C:\OracleiAS\10.1.3\OracleAS_1\opmn\l
    ib;C:\OracleiAS\10.1.3\OracleAS_1\bin;C:\oracle\ora92\bin;C:\WINNT;C:\WINNT\sy
    stem32"/>
    <variable id="ORACLE_HOME" value=
    "C:\oracle\ora92"/>
    <variable id="ORA_NLS33" value=
    "C:\Oracle\ora92\ocommon\nls\admin\data"/>
    </environment>
    <process-type id="home" ...
    Thanks.

    Hello,
    Boy, Am i glad that there is a demantra forum here.
    We are getting ready to install and implement demantra to replace our current ODP system. Our current EBS architecture consists of a source 11.5.10.2 ERP instance on ATG.RUP.5 (3 node on sun servers with solaris 10) and also a planning (ASCP, 1 node sun server with solaris 10 ) instance with the same patch levels on seperate servers (distributed architecture). The current ODP is on our planning instance and will be replaced by Demantra eventually.
    For demantra because of our load levels and also for performance reasons, we are thinking of the following configuration.
    1 Server for 10g DB on Linux RHAS 4 (8cpu, 8gb ram)
    2 apps servers on 10g IAS on Linux RHAS 4 (4cpu, 4gb ram)
    Citrix cluster - 3 windows 2003 servers for analytical engine
    users desktops - DM administrative tool ?
    I am not at all clear on the installation document. Can one of you please please help me out on how to go about this install. My plan is to first install the 10g database, then the 10g apps servers. After that I am not clear.
    Are there seperate CD's for demantra install or can i download the installation, do i start the install on the DB server ? how do i hook it up to the apps servers ?
    is there a seperate installation cd for the analytical engine ?
    How do i hook up all of this to our planning instance ?
    Are there any patches that need to be applied to our source ERP , planning instance for this ?
    Do all the source, ASCP instances also need to be upgraded to 10g ?
    If you have a complete installation document with the sequence of steps and can share with me, then that would really help.
    Thanks.

Maybe you are looking for

  • Cannot insert data from local database into remote database using subquery

    I have two oracle databases on different host. One is version 8i in Host A and the other is 9i in Host B. First, I try to create a dblink in 8i to 9i, but it fail. Then, I create a dblink in 9i to 8i, it success. I have already tried some select stat

  • My Windows Vista is Not Working

    I was using my Vista side of my iMac a few days ago when i was prompted to install an update now every time I click on the icon I get an Error message saying that parallels has quit unexpectedly I hit the RELAUNCH button but it just comes back to the

  • Structs and inconsistent datatypes

    From my java client I running into this exception when I select * from emp... java.sql.SQLException: ORA-00932: inconsistent datatypes ...but from SQLPlus the select works fine. My object and table... CREATE TYPE emp_struct AS object (empId NUMBER,fn

  • Progress bar to update as script runs

    Hi, I'd like to have a progress bar being displayed as my script runs. I created a simple progress bar as follows: var win = new Window("palette", "SnpCreateProgressBar", [150, 150, 600, 260]); win.pnl = win.add("panel", [10, 10, 440, 100], "Script P

  • Looking For DW Private Tutor

    I've taken 2 classes, but what works for me is one to one so I can ask for explanations mor than once and be shown how to