facebook

Running Server with OC4J

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #349544 Reply

    Hi!

    I’m trying to run a Server with OC4J 10.1.3.5.0, I’ve already configured the system variables used by OC4J and I’m able to run it in the command line where everything runs fine.

    If I try to run it from MyEclipse I just get an error “Error: no se ha encontrado o cargado la clase principal oc4j.jar”, translated to English means “Error: Could not find or load main class oc4j.jar”. That’s it, I don’t get a more meaningful error, is there a way to find out what could be causing this error?

    If I look on the j2ee/home directory I can see the deployed project.

    Regards,
    Eduardo

    #349548 Reply

    Eduardo,

    I could replicate it only when I select JDK 1.7 as the Oracle 10.x AS JDK name.

    Can you please clarify which version of JDK you are using for Oracle application server (Window > Preferences > MyEclipse > Servers > Oracle > Oracle 10.x > JDK)?

    Oracle Application server 10.1.3.5.0 supports JDK 5.0 version. So, you need to download and install JDK 5 version and add it to MyEclipse by clicking on ‘Add’ under Window > Preferences > MyEclipse > Servers > Oracle > Oracle 10.x > JDK.

    If you are still facing issues starting the server, can you please share your MyEclipse installation details from MyEclipse (menu) > Installation summary.. > Installation details.

    Let us know how it works for you.

    #349609 Reply

    Hi!

    I’m indeed using JDK 1.7, I’ll give it a shot with JDK 5.0, and I’ll let you know!
    Thanks for your response.

    Regards,
    Eduardo

    #353412 Reply

    ztsh
    Member

    Hi, support team!

    I see similar error message when trying to run OC4J versions 9 and 10 from MyEclipse 2015 (Build id: 13.0.0-20141222) on Windows 7.

    I might be related to JDK version, because when I run the server from command line then the server starts even with Java 1.8.0.20. When I try to start OC4J v9 in MyEclipse 2014 (using external JDK 1.6.0.43 in Preferences -> MyEclipse -> Servers -> Oracle -> Oracle 9.x -> JDK) then it starts successfully. When I use embedded AppData\Local\MyEclipse Professional 2014\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45, then server doesn’t start and console tab shows “Error: Could not find or load main class oc4j.jar” message.

    On MyEclipse 2015 I’ve tried to run the servers using embedded JDK (AppData\Local\MyEclipse 2015 CI\binary\com.sun.java.jdk7.win32.x86_64_1.7.0.u45) and JDK 1.6.0.43 but I get “Unable to access jarfile oc4j.jar” popup with both JDKs. Also, the Oracle Server v9.x editor page looks strange – it mentions ‘Orion Server Configuration’, but I haven’t configured Orion servers at all in this MyEclipse 2015 instance. See the screenshot http://puu.sh/eABEx/8f427fb13b.png – this is when I stop the server because MyEclipse thinks that server was actually started. Both admin.jar and oc4j.jar files are present in my local C:\servers\oc4j-9.0.4\j2ee\home folder.

    Exact oc4j versions that I’m using are 9.0.4.0.0 and 10.1.2.0.2. Could you please confirm whether these servers work in MyEclipse 2015 in your environment, and what I might have configured incorrectly?

    #353472 Reply

    support-swapna
    Moderator

    ztsh,

    Apologies for the delayed response. I could configure Oracle Server v9.0.3 with external JDK 1.6.43 without any issues on MyEclipse 2015 CI 10.

    Since you are working with MyEclipse 2015 CI 9, can you please update to MyEclipse 2015 CI 10 (Help > Check for Updates) and check if you can start the server with JDK 1.6.43 ?

    I could not find a download link for OC4J 9.0.4. If you have the link, please share it with us.

    Please make sure the version of OC4J you are working with supports the JDK you are pointing to. OC4J v 9.0.4 is not certified to run with JDK 1.5 or later, but there are users who successfully configured it with JDK 1.6.

    I could replicate the issue with Oracle Server v10.x. I have filed a bug for the dev team to investigate further. The mention of “Orion Server Configuration’ on the Oracle Server Overview page is a mistake.Thank you for pointing it.

    Let us know how it works for you.

    #353855 Reply

    support-swapna
    Moderator

    Hi,

    The issue with OC4J server 9.x and 10.x versions is now fixed with our latest release, MyEclipse 2015 CI 11.

    Please go to Help > Check for Updates,update to the latest release and check if you are still seeing issues.

    Let us know how it works for you.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Running Server with OC4J

You must be logged in to post in the forum log in