Set classpath for plugin

Hi Javafolks,
I need to be able to set the classpath used by the Java 1.4 Plugin by some means. I think it defaults to 'C:\Program Files\Java\jre\1.4\Classes' and I don't know how to change or add to this setting. Has anyone else come across this and solved it?
Cheers.

Does the plugin work differently from the regular jre jvm?
Have you added the classpath to OS's environment variables and tested it? (if using windows, go to System properties->advanced->environmentvariables and add/modify it to the system variables)

Similar Messages

  • How to set Classpath for MySQL

    Hi
    I want to connect to my mySQL db with a java program , but I don't know how to install the mySQL connector driver. Can anyone help me? or indicate somewhere where I might find the answer?
    And how to set Classpath for MySQL.
    my program gives an exception ClassNotFound.
    Exception :com.mysql.jdbc.Driver
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    at Files.main(Files.java:352)
    Plz help me
    Thanx
    Lalit

    to make your life easy i tried to connect..
    what you have to do is.. you mysql database server should be running
    next you have to download one of the version of mysql driver.. i downloaded mysql-connector-java-5.0.5
    go to my computer right click - >advance tab -> click on environment variable -> put you path e.g. C:\Program Files\Java\jarFiles\mysql-connector-java-5.0.5\mysql-connector-java-5.0.5-bin.jar
    into your classpath in a user variable section..
    Try this code
    import java.sql.*;
    public class MySqlConnect{
         public static void main(String [] args){
              try{
                   Class.forName("com.mysql.jdbc.Driver");
                   String url ="jdbc:mysql://localhost:3306/test";
                   Connection con =DriverManager.getConnection(url,"root", "password");
                   System.out.println("Connection: " + con);
              }catch(ClassNotFoundException cnfe){
                   cnfe.printStackTrace();
              }catch(SQLException se){
                   se.printStackTrace();
    }have fun
    Gurnah

  • Can I set classpath for OAS 10g?

    Hi,<br>
    <br>
    I have OAS on my workstation. Here are the details.<br>
    Server : Oracle Application Server 10g Release 3 <br>
    Version : 10.1.3.1.0 SOA4<br>
    Build : 061008.0900.00025<br>
    Platform : Windows XP - SP2<br>
    <br>
    I want to set an explicit classpath for complete OAS 10g as such and not to an individual oc4j application. Will I be able to do it?<br>
    I saw the System Properties after my server started.<br>
    It has a name-value pair as "java.class.path oc4j.jar".<br>
    So, I assume all my classpath settings (done thru Environment Variables from My Computer) are lost.?<br> I want to set it explicitly during the server startup itself. Can I do that?<br>
    I tried setting below in the opmn.xml <br>
    <process-set id="ASG" numprocs="1"><br>
         <module-data>          <br>                         <category id="start-parameters">     <br>               <data id="start-executable" value="C:\Oracle\product\10.1.3.1\OracleAS_1\jdk\bin\java"/>     <br>               <data id="start-args" value="-classpath C:\abc\properties\"/><br>
    I appended my properties folder after all the jar files present in that tag.<br>
    But its not loading any of my properties files.<br>
    <br>
    Can someone please help me out.<br>
    <br>
    Regards,<br>
    <br>
    Prashanth Babu.

    No, the iPad does not support multiple user accounts or preferences.

  • Starting tomcat server after setting classpath for java

    Sorry if this is nothing to do with java, it is more to do with starting tomcat server.
    Tomcat server has been working totally fine, but when I wanted to compile a java servlet I wrote for it, I needed to run a BAT file called gojava in MS-DOS that had the classpath for java to work properly. I then attempted to run Tomcat, but just got 'bad command'. As long as I don't start up java by setting the classpath, tomcat will work, but as I need java to write servlets and then to test them without restarting my PC each time, how do I get tomcat to work?
    Thanks
    Hannah

    Sounds like your batch file is changing your path, not your classpath. If you're getting "Bad command or filename" when attempting to run Tomcat, it can't find the executable. Check out the .bat file and see what it's doing (maybe even post it here for further clarity). If it's changing your path at all, make sure it includes a %path% to indicate that it simply wants to append items to the path, not overwrite it completely. Sorry if i'm way off base with my suggestions, but it sounds like that's where the problem's going to be, especially if rebooting resolves the problem.

  • How to set classpath for J2ME

    how to set class path for j2me. I downloaded J2ME Wireless tool kit. And set the classpath "set classpath=c:\J2mewtk\lib\midpapi.zip;.;". but i could compile java file. .how to set.
    With regards
    Santhosh

    When you are downloading j2MEWTK, everything is included within it. You dont require MIDP seperately. When you are runnung the ktoolbar , which is provided with J2mewtk, the preverifier runs and creates the required jad file for you. You dont need a forte to run these.
    If you want to download MIDP seperately, that also is possible. Then you have to go for command line arguments. Please refer to Sun's MIDP page for details.
    Let me know, if you face any further problem

  • Set classpath for java in fedora core 1?

    i am new to programming java on linux and im having trouble finding out how to set classpath in the shell, permenently. i have the sdk installed and tried the usual "hello world" test and failed. the response i would get a message telling me javac is not a bash command. i have no clue how to set classpaths in linux so i would much appreciate it if someone would show me thanks

    Ok, there is two ways to achieve this. Either by setting it globally for all the user, or only for your self. If you are working on your own station and have super user access, you can set it up for all th eusers, if not, just set it for your self. How ??
    for all the users, modify the file /etc/profile and include this:
    PATH=$PATH:/path/to/jdk/bin:.
    CLASSPATH=$CLASSPATH:/path/to/jdk/lib/tools.jar:/path/to/jdk/lib/rt.jar
    export PATH CLASSPATH
    If you want to add it only for ur self then, modify the lsame line in ~/.bash_profile
    hope this helps

  • How to set classpath for classes in war files

    Hi All,
    After deploying the WAR file I could access the JSP files but gives classnotfound exception when the information is expected from the java servlet.DO I need to set the classpath if yes how to do for the war file.
    thanks

    The web.xml,file structure and error is below let me know if more information is required.
    As you said weblogic is looking for the classes in lib directory inspite of having the classes in web-inf/classes directory.
    web-app>
    <servlet>
    <servlet-name>ControllerServlet</servlet-name>
    <servlet-class>com.test.site.pds.Controller</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ControllerServlet</servlet-name>
    <url-pattern>/controller</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    </web-app>
    File Structure:
    C:\test\PDSWebApp\WEB-INF\classes\com\test\site\pds\*.class
    PDSWebApp
         css
         html
         images
         javascript
         jsp
         WEB-INF
         classes
         com/test/site/pds/*.java
         lib
         servlets
    The error:
    javax.servlet.ServletException: [HTTP:101249][ServletContext(id=18129862,name=PdsApp,context-path=/PdsApp)]: Servlet class com.test.site.pds.Controller for servlet ControllerServlet could not be loaded because the requested class was not found in the classpath C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\PdsApp.war;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\classes12.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-beanutils.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-collections-2.1.1.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\commons-lang-2.0.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\displaytag-1.0.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\jstl.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\WEB-INF\lib\standard.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp\jarfiles\_wl_cls_gen.jar;C:\bea\user_projects\domains\mydomain\.\myserver\.wlnotdelete\extract\myserver_PDSAPP_PdsApp.
    java.lang.ClassNotFoundException: com.test.site.pds.Controller.

  • Setting Classpath for java in UNIX machine

    Hi
    I need to work in JAVA in UNIX machine. But, I don't know how to set the classpath in the unix machine. If anyone knows, please let me know.

    setenv CLASSPATH .:/homes/code:${CLASSPATH}
    http://www.cise.ufl.edu/class/cop3530fa04/WinHowTo.htm

  • How set classpath for EJB

    My EJB will process xml file and I use Apache xml process jars. What should I do when archive and deploy the EAR so that my application can find the Apache Jars properly, currently the application always find the oracle xml process jars.

    you need not set any classpath to start the weblgic server, just go to start>programs... likethis y can start server
    you can set your classpath environment by
    setEnv.bat
    in bea/config directory

  • How to set classpath for third party jdbc-driver

    my application contains bc4j jsp. when i try to run this jsp application which connect to postgresql, i get a error message
    "Application Error
    Return
    Error Message: JBO-30003: The application pool (App_ModLocal) failed to checkout an application module due to the following
    exception:
    Error Message: JBO-26061: Error while opening JDBC connection."
    how to solve this.

    The JDBC for your database should be added to your client project.
    In JDeveloper created a new 'named' library item and specify the JDBC jar files for your database.
    See also related article
    http://otn.oracle.com/products/jdev/howtos/bc4j/bc_pdb2walkthrough.html#edit
    - Sathish

  • Setting classpath for Xerces-2_4_0

    Hi guys
    This might have been answered before but I have tried locating the answer in the forum, no joy.
    My problem is to do with the classpath. As you know, xerces-2_4_0 now comes with multiple jar files as oppose to xerces version 1 (only single jar file is used ie. xerces.jar).
    I have included xercesImpl.jar under my classpath:
    .;C:\java\ant-1.5.3\lib;C:\java\xerces-2_4_\xercesImpl.jar;C:\java\xerces-2_4_0\xercesSamples.jar
    And also in my path:
    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\java\j2sdk\j2sdk1.4.2
    \bin;C:\java\ant-1.5.3\bin;C:\java\xerces-2_4_0\xercesImpl.jar;
    However, when compiling any java classes that import the following package:
    org.apache.xerces.parsers.DOMParser;
    i get this error:
    java.lang.NoClassDefFoundError: org/apache/xerces/framework/XMLParser
    Little help please? Much appreciated.
    Kevin

    Run jar -tvf xercesImpl.jar and see if the org/apache/xerces/framework/XMLParser is found. I'll bet it isn't, however I'll bet org.apache.xerces.parsers.DOMParser is. You'll need to figure out which .jar file has the framework/XMLParser class and place it in your classpath.

  • Setting path for third party class files

    I am using some third party classfiles in my JSPs for JDBC. When I use these files, in normal Java Programs everything is working fine ( I am setting the path by using the CLASSPATH environment variable).
    I did not understandt how to set classpath for these files (com.informix.jdbc.*) for use in iplanet 6.0.
    I have tried to keep this "com" folder in /usr/java/j2sdk1.4.3_01/lib folder, but, it is not still working. I tried to change the start-jvm file, but, I am still having problems.
    Can someone help me !!!
    --Murthy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I changed the jvm12.conf file, but, it did not work. I changed the JDK Runtime Classpath in the Global Settings tab of the Administration Server and restarted both the webserver and the administration server and it worked.
    Thanks for your response.
    --Murthy.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Setting classpath in Tomcat on AIX

    Hi All
    Can any one know how to set classpath for jsf application in tomcat on AIX.

    Refer to the Tomcat's documentation regarding classpaths and classloading. The underlying operating system doesn't really matter.

  • Problem in setting path and classpath for java in RedHat linux 9

    Hi ,
    i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
    I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
    and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
    in terminal
    but i want to configure it as permenant way for the jre and jdk
    and we should only type java or javac according to the requirement
    regards mihir...

    type those in .bashrc ... save and exit
    then at prompt, type 'source .bashrc'
    this is the permanent solution ...
    bhalo thakun

  • Can't set classpath or classloader for JavaCompiler!

    I have a class that I load using my own class loader. I know the class is loaded because I can instantiate it using reflection.
    Then, in my code I try to compile a source file which references (via import) the class I loaded, and I get a package does not exist error on the compile.
    I have tried everything I could think of. Currently, I'm doing this (read the comments):
            StandardJavaFileManager fileManager = compiler.getStandardFileManager(null, null, null);
            // trying to force the filemanager to use my class loader when resolving class paths... doesn't ever get called
            // except when loading annotation processors, though!!!
            ForwardingJavaFileManager<JavaFileManager> ffm = new ForwardingJavaFileManager<JavaFileManager>(fileManager)
                @Override
                public ClassLoader getClassLoader(Location location)
                    if (location == StandardLocation.CLASS_PATH)
                        return serviceClassLoader;
                    return super.getClassLoader(location);
                // This returns a list of File objects which were loaded in my class loader.
                // The File objects are created from the URL's I load in the class loader, and have the form:
                // "C:/Some/Path/To/File.jar"
                List<File> compileClassPath = serviceClassLoader.getClassPathFiles();
                // Adding the bin directory which contains the .class files of my app (in Eclipse)
                compileClassPath.add(new File("./bin"));
                // Attempt to add the bin dir with the .class files from another project - this is where the classes are that are failing to load
                compileClassPath.add(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/"));
      fileManager.setLocation(StandardLocation.CLASS_PATH, compileClassPath);The output I'm seeing includes:
    CentralLoggingService_CentralLogService_Listener.java:5: package com.dave.service.logging does not exist
    import com.dave.service.logging.CentralLoggingService;
                                     ^
    CentralLoggingService_CentralLogService_Listener.java:7: cannot find symbol
    symbol: class CentralLogService
    public class CentralLoggingService_CentralLogService_Listener implements MessageListener<CentralLogService>So, basically, I need to know how to either:
    1) Set the class path for the JavaCompiler so that it will load classes that are required by the source being compiled, or...
    2) Set the classloader the JavaCompiler uses to resolve those classes.
    I've tried everything I could think of, even reading through the compiler source, and nothing has worked yet.
    Can anyone help?!?

    Hi,
    I am not sure but the argument to new File() looks dubious to me.
    You seem to be mixing URL and filename syntax.
    What does this do?
    class FileTest {
        public static void main(String[] args) {
            system.out.println(new File("C:/Documents%20and%20Settings/David/workspace/CoreServices/bin/").exists());
    }if its false then that directory doesn't exist.
    I would use backslashes (don't forget to escape them) and spaces, and no trailing path separator - like this
    class FileTest {
        public static void main(String[] args) {
            system.out.println(new File("C:\\Documents and Settings\\David\\workspace\\CoreServices\\bin").exists());
    }Play around with that till you can create a File object that exists and isDirectory().
    When I have done this in the past, I have used the existing classpath to set the classpath for invoking the compiler. For example this snippet from the hickory project at [https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup|https://hickory.dev.java.net/source/browse/hickory/trunk/code/src/net/java/dev/hickory/testing/Compilation.java?rev=11&view=markup]
    List<String> optionList = new ArrayList<String>();
    optionList.addAll(Arrays.asList("-classpath",System.getProperty("java.class.path")));
    optionList.addAll(Arrays.asList(options));
    JavaCompiler.CompilationTask task = compiler.getTask(out,jfm,diagnostics,optionList,null,jfos);An advantage of that technique is that you don't have the path hard coded in the program. Useful if someone else wants to run it.
    In fact, you might find it useful to use the hickory testing package which provides an abstraction over the compiler API. See the javadoc starting here
    [https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/Compilation.html]
    Bruce

Maybe you are looking for

  • This is not the logical system of controlling area 2000

    Hi,   While creating Activity type / price planning in kp26....i am getting the the information like... "This is not the logical system of controlling area 2000"..   but i am using the company code 3000 which is assigned to the controlling area 2000.

  • Why is Mail such a pain?

    I got my MBP back in December. I've been avoiding setting up Mail because of the hassle, and because I wasn't sure I needed to have my MBP get that bogged down in its functions (audio and photo). So, anyway...last week, I found I needed to go ahead a

  • New Epson WF 7620 will not print with Macbook Air, receive "Print File Was Not Accepted" message.

    Hello! To anyone who tries to help me, thank you in advance! I brought home a new Epson WF 7620 yesterday and did all the necessary stuff, installing it with my Macbook Air (Mac OS X ; 10.7.4.). I installed the software from the site, added the print

  • Premiere Pro 2014.2 jumbling open Sequence tabs

    It appears I'm not the only one experiencing frequent crashes. As incredibly soul crushingly annoying as they are, their disruptive impact is multiplied by my open sequence tabs being... randomized... when I re-open the project. A normal SAVE and OPE

  • Since installing photostream, iphoto crashes upon opening.

    I just installed icloud, with photostream.  Now, every time I try to open iPhoto, it crashes.  If I shut off photostream, iPhoto works fine.  Any suggestions?