IJAVA

I need to use multiple versions of JAVA on one computer. I need to use JAVA 1.6.0_10 and JAVA 1.6.0_23. How do I place both versions on one computer.
On older computer I can have both versions show. But on newer computer only one version shows.

I recommend the following for your reading pleasure:
http://blogs.oracle.com/shay/2007/03/02/
http://download.oracle.com/javase/6/docs/technotes/guides/plugin/developer_guide/version.html

Similar Messages

  • The selected wizard could not be started  Reason:org/eclipse/jdt/core/IJava

    Hi
    i am a newbie to Eclipse plugin , i have used org.eclipse.jdt.core package classes(IJavaElement,ICompliationUnit)
    for my developement . In Standalone ( as a Eclipse application ) My code is working its generating required java files
    I export my plugin project and created a plugin folder. And copied the folder into eclipse/plugins folder
    Now if i open the Wizard. wizard opens with a alert saying
    " The selected wizard could not be started Reason:org/eclipse/jdt/core/IJavaElement "
    what will be problem
    i am using eclipse3.1 and JDK 5.0
    plugin.xml i have used the follwing requires tag
    <requires>
    <import plugin="org.eclipse.ui"/>
    <import plugin="org.eclipse.core.runtime"/>
    <import plugin="org.eclipse.core.resources"/>
    <import plugin="org.eclipse.ui.ide"/>
         <import plugin = "org.eclipse.jdt.ui"/>
         <import plugin = "org.eclipse.jdt.core"/>
         <import plugin = "org.eclipse.jdt.launching"/>
         <import plugin = "org.eclipse.jdt.debug"/>     
    </requires>
    Regards
    Ganesan S

    Please disregard. Reinstalling seems to have solved this
    issue.

  • How to get more than 256 bytes data

    hello.
    I use Schlumberger 32K Card�iJava Card 2.1�j.
    Please tell me how to get more than 256 bytes data from the applet in the card!!
    According to JCRE specification, need to use Get Response Command.
    What is Get Response command?
    Do I have to write processing of Get Response command to an applet?
    Or JCRE processes Get Response command?
    If knows, please tell me about!!
    Thanks.

    Thanks for your response!!
    I understand that I have to write processing of Get Response command to an applet.
    But case of Schlumberger 32K card, when host send Get Response command to an applet, card reply 6F-00!?
    I'm investigating now, and it seems that response is returned before applet processes Get Response command(CLA = 00, INS = C0).
    Do JCRE perform the process of Get Response command?

  • Need a little help with JAR creation

    I've created a JAVA program with the Forte IDE and now I want to make it executable without the IDE. I read on this forum that all I had to do was create a JAR file, so I tried but I get an error (see below). Could someone point out my error please.
    Directory Tree:
    vio082\vio\app\
    DOS command to create executable JAR:
    "java -jar cmf trackerManifest.txt trackerTest.jar trackerTest.Class"
    ERROR I RECEIVED:
    "Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified
         at java.util.zip.ZipFile.open<Native Method>
         at java.util.zip.ZipFile.<init><Unknown Source>
         at java.util.zip.ZipFile.<init><Unknown Source>
         at java.util.zip.ZipFile.<init><Unknown Source>"
    This was my file trackerManifest.txt:
    Main Class: trackerTest
    [cr]
    This is the begining of my file trackerTest.Class:
    package vio.app;
    import javax.comm.*;
    import vio.tracker.*;
    import java.net.*;
    import java.io.*;
    public class trackerTest {
         public static void main (String argv[]) {

    Thanks for the help so far. My first problem was that the directory with the "jar" command was not in my path (now that fixed). My application still won't execute and I think it has to do with the following:
    My application uses the serial port to communicate with a device and uses a socket server to communicate with a C++ program. The following JAVA utilities are imported to make my application work:
    javax.comm.
    java.net.
    ijava.io.
    If I use the command:
    "jar cvfm trackerTest.jar trackerManifest.txt trackerTest.Class"
    will the appropriate files from javax.comm, java.net and ijava.io also be incorporated into the jar file? If not, how are they made available when I distribute my jar to other users?
    Second question:
    Should I be using:
    "jar cvfm trackerTest.jar trackerManifest.txt vio082/*.*"
    to capture all the other classes required by my package that are in other directories above and below the trackerTest.class directory?
    Any help is greatly appreciated.
    JAM

  • Jsp shopping cart

    i am new to jsp and am trying to create a shopping cart i have found some code but as it is older code i cant get it to work on the latest version, The following wont compile and i get these errors
    C:\Inetpub\wwwroot\jsp\ShoppingServlet.java:3: package javax.servlet does not exist
    C:\Inetpub\wwwroot\jsp\ShoppingServlet.java:4: package javax.servlet.http does not exist
    i have placed the files in my root directory on IIS, can anyone help, I
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import shopping.CD;
    public class ShoppingServlet extends HttpServlet {
    public void init(ServletConfig conf) throws ServletException {
    super.init(conf);
    public void doPost (HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    HttpSession session = req.getSession(false);
    if (session == null) {
    res.sendRedirect("http://localhost:8080/error.html");
    Vector buylist=
    (Vector)session.getValue("shopping.shoppingcart");
    String action = req.getParameter("action");
    if (!action.equals("CHECKOUT")) {
    if (action.equals("DELETE")) {
    String del = req.getParameter("delindex");
    int d = (new Integer(del)).intValue();
    buylist.removeElementAt(d);
    } else if (action.equals("ADD")) {
    //any previous buys of same cd?
    boolean match=false;
    CD aCD = getCD(req);
    if (buylist==null) {
    //add first cd to the cart
    buylist = new Vector(); //first order
    buylist.addElement(aCD);
    } else { // not first buy
    for (int i=0; i< buylist.size(); i++) {
    CD cd = (CD) buylist.elementAt(i);
    if (cd.getAlbum().equals(aCD.getAlbum())) {
    cd.setQuantity(cd.getQuantity()+aCD.getQuantity());
    buylist.setElementAt(cd,i);
    match = true;
    } //end of if name matches
    } // end of for
    if (!match)
    buylist.addElement(aCD);
    session.putValue("shopping.shoppingcart", buylist);
    String url="/jsp/shopping/EShop.jsp";
    ServletContext sc = getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher(url);
    rd.forward(req, res);
    } else if (action.equals("CHECKOUT")) {
    float total =0;
    for (int i=0; i< buylist.size();i++) {
    CD anOrder = (CD) buylist.elementAt(i);
    float price= anOrder.getPrice();
    int qty = anOrder.getQuantity();
    total += (price * qty);
    total += 0.005;
    String amount = new Float(total).toString();
    int n = amount.indexOf('.');
    amount = amount.substring(0,n+3);
    req.setAttribute("amount",amount);
    String url="/jsp/shopping/Checkout.jsp";
    ServletContext sc = getServletContext();
    RequestDispatcher rd = sc.getRequestDispatcher(url);
    rd.forward(req,res);
    private CD getCD(HttpServletRequest req) {
    //imagine if all this was in a scriptlet...ugly, eh?
    String myCd = req.getParameter("CD");
    String qty = req.getParameter("qty");
    StringTokenizer t = new StringTokenizer(myCd,"|");
    String album= t.nextToken();
    String artist = t.nextToken();
    String country = t.nextToken();
    String price = t.nextToken();
    price = price.replace('$',' ').trim();
    CD cd = new CD();
    cd.setAlbum(album);
    cd.setArtist(artist);
    cd.setCountry(country);
    cd.setPrice((new Float(price)).floatValue());
    cd.setQuantity((new Integer(qty)).intValue());
    return cd;

    Original Post
    i have placed the files in my root directory on IIS, can anyone help, IJava-Queries Post
    hi!
    i guess u r using the servlet engine(ServletRunner) that comes along with jsdk. what's ur version? what u do is, set the classpath to where ever u have the jsdk directory, if u dont use any IDE, type this in the dos prompt, (for eg, ur jsdk is in local c drive)
    c:\ set classpath=c:\jsdk4.0\lib;
    then compile the file, if u use an IDE, what's that u r using?
    >>>
    The problem here is that the OP does not know that a web server is needed to run JSP or is it a Typo
    -Regards
    Manikantan

  • If you can do it with C++ why not doing it in Java?

    C++ is a great language but I dream of doing flex development
    with java instead of actionScript simply because it is a superior
    language (than actionScript). The bad side would be that it would
    kill the JavaFX project.
    I feel actionScript is oriented toward graphists and animator
    and miss some business/serious features like generics, abstraction,
    comprehensive collection library and thread synchronization.
    C++ does have all of these. I don't what to enter a C++
    versus Java flame war but I just would like to point out that there
    is a need for a Flash VM that runs Java classes.

    quote:
    Originally posted by:
    MarcusGDaniels
    As of 5 minutes ago, Java is not yet building from the LLVM
    trunk + gcc-4.2 trunk. That would be a neat trick indeed w.r.t
    Alchemy.
    make[3]: Nothing to be done for `all'.
    /Volumes/Untitled/build/gcc42-llvm/./prev-gcc/xgcc
    -B/Volumes/Untitled/build/gcc42-llvm/./prev-gcc/
    -B/Users/mdaniels/packages/llvm/i386-apple-darwin9.5.0/bin/ -c -g
    -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings
    -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
    -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
    -Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -I.
    -Ijava -I/Volumes/Untitled/src/gcc42-llvm/gcc
    -I/Volumes/Untitled/src/gcc42-llvm/gcc/java
    -I/Volumes/Untitled/src/gcc42-llvm/gcc/../include -I./../intl
    -I/Volumes/Untitled/src/gcc42-llvm/gcc/../libcpp/include
    -I/Users/mdaniels/packages/gcc/include
    -I/Users/mdaniels/packages/gcc/include
    -I/Volumes/Untitled/src/gcc42-llvm/gcc/../libdecnumber
    -I../libdecnumber -I/Users/mdaniels/packages/llvm/include
    -I/Volumes/Untitled/src/llvm/include -DENABLE_LLVM
    -I/Users/mdaniels/packages/llvm/include -D_DEBUG -D_GNU_SOURCE
    -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
    /Volumes/Untitled/src/gcc42-llvm/gcc/java/lang.c -o java/lang.o
    /Volumes/Untitled/src/gcc42-llvm/gcc/java/lang.c: In function
    'java_init':
    /Volumes/Untitled/src/gcc42-llvm/gcc/java/lang.c:378: error:
    'force_align_functions_log' undeclared (first use in this function)
    /Volumes/Untitled/src/gcc42-llvm/gcc/java/lang.c:378: error:
    (Each undeclared identifier is reported only once
    /Volumes/Untitled/src/gcc42-llvm/gcc/java/lang.c:378: error:
    for each function it appears in.)
    make[3]: *** [java/lang.o] Error 1
    make[2]: *** [all-stage2-gcc] Error 2
    make[1]: *** [stage2-bubble] Error 2
    make: *** [all] Error 2
    Hi Marcus,
    I am also getting the same error while trying to build LLVM
    frontend.
    I will be very thankful if you could please tell me how you
    solve this error.
    Thanks

  • Node/NodeList problem [XML/DOM]

    Problem: IJava code is not printing out the 2nd node but rather printing the 1st one twice from the XML file.
                            Node firstChildren = doc.getFirstChild();
                   String nodeName1 = firstChildren.getNodeName();
                   System.out.println(nodeName1);
                   Node nextNode = firstChildren.getNextSibling();
                   String nodeName = nextNode.getNodeName();
                   System.out.println(nodeName);the XML looks like this:
    <Office>
                 <Employee Employeename="Ryan">
                            <Position>Claims</Position>
                 </Employee>
    </Office>The Java code prints out:
    Office
    Office
    Also is there a way/method to get the values of an element without making the element values into attributes? getNodeValues returns null for elements.

    Not sure your question, You should only have one node at the root of the tree, so you shouldn't be getting two different nodes. walking the roots 'siblings'
    An element doesn't have a 'value'. What we perceive a an elements value is just child nodes (Text, Elements, etc) that you need to walk with getFirstChild, getNextSibling, etc.

Maybe you are looking for