Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Jdeveloper on Open suse

  1. #1

    Question Jdeveloper on Open suse

    Hi,
    I am trying to use many Oracle development tools (SQL Developer, SQL Moduler) in linux without succeeding, mainly because of java (at least I think so).
    Now I am facing the same issue with JDeveloper, I am getting the error

    memo@linux-ercl:~/Oracle/Middleware/jdeveloper/jdev/bin> ./jdev
    Oracle JDeveloper 11g Release 2 (11.1.2.4.0)
    Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/memo/Oracle/Middleware/jdk160_24/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1702)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1806)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1723)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
    at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
    at java.awt.Component.<clinit>(Component.java:567)
    at oracle.ide.osgi.boot.OracleIdeLauncher.main(OracleIdeLauncher.java:87)
    at oracle.ide.osgi.boot.JDeveloper.main(JDeveloper.java:14)
    Is there is any way to resolve this!!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,853

    Default Re: Jdeveloper on Open suse

    Hello and welcome here.

    You say you use those developer tools in Linux. I hope you mean openSUSE, but please, people here are always interested to know which version of openSUSE you use. This often makes understanding your environment and thus the level of help they can give much better

    Also, please do not use the QUOTE tags when posting computer text, but CODE tags. It is the # button in the toolbar.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Jdeveloper on Open suse

    On 06/27/2013 11:06 AM, ali mearaj wrote:
    > Is there is any way to resolve this!!


    i have not tried to do what you are doing, but if i did i would at
    least use Oracle's Java, because i see in the errors you provided
    references to Oracle JDK (and not the openJDK which is default
    installed on openSUSE)....OR did you install it and i'm reading it
    wrong when i see it says "No such file or directory"

    if after installing the required JDK, if it still didn't work i would
    use Oracle's Linux or SUSE Linux Enterprise and not openSUSE..

    or maybe i would ask Oracle why there Developer doesn't seem to run
    on every Linux distro or Java implemention..

    all of that brings up the question: What are the requirements of
    JDeveloper? and, Which Linux distributions does Oracle say they support?

    ymmv

    --
    dd
    http://tinyurl.com/DD-Caveat


  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,921
    Blog Entries
    2

    Default Re: Jdeveloper on Open suse

    Quote Originally Posted by ali_mearaj View Post
    Hi,
    I am trying to use many Oracle development tools (SQL Developer, SQL Moduler) in linux without succeeding, mainly because of java (at least I think so).
    Now I am facing the same issue with JDeveloper, I am getting the error


    Is there is any way to resolve this!!
    Your specific error seems clear, you're missing a library
    libmawt.so which might include libXtst.so.6

    You'll need to figure out whether this/these files should have been installed on your machine and why they're missing (Did you read the documentation to get a prerequisites list?).

    HTH,
    TSU

  5. #5

    Default Re: Jdeveloper on Open suse

    Dear hcw,
    Thanks for you response, sorry for the wrong usage and the delayed response from my side.
    Yes, it is openSUSE, and it is openSUSE 12.3.

    Dear DenverD,
    I have installed Oracle Java, but I think it is something regarding setting the path.
    Regarding the usage of Jdeveloper & linux, I am working for a company, we have a windows environment, but my preference is linux, this is why I use it on the desktop.

    Dear tsu2,
    I followed the exact steps specified by Oracle, I assume these are standard Java files, but -if my theory is correct- then I would only need to set the path.

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Jdeveloper on Open suse

    On 06/29/2013 07:36 AM, ali mearaj wrote:
    > I think it is something regarding setting the path.


    i use the Oracle JRE and not the JDK--but i don't know how to create
    a "java path" for either..

    i would assume the instructions are somewhere in the JDK/JRE
    documentation..

    seems everything about Java got more difficult when Oracle changed
    the license..

    --
    dd


  7. #7

    Default Re: Jdeveloper on Open suse

    Quote Originally Posted by tsu2 View Post
    Your specific error seems clear, you're missing a library
    libmawt.so which might include libXtst.so.6
    No.
    libmawt.so is included in his JDeveloper installation.
    But he is missing libXtst.so.6...

    Acccording to the output this is a 32bit application, so you would need to install the package "libXtst6-32bit" (or just "libXtst6" if you have a 32bit system) with YaST or zypper.
    At least that's the package name in openSUSE 12.3, which version do you have? (edit: nevermind, I overlooked that it is indeed 12.3...)

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,921
    Blog Entries
    2

    Default Re: Jdeveloper on Open suse

    Quote Originally Posted by ali_mearaj View Post

    Dear tsu2,
    I followed the exact steps specified by Oracle, I assume these are standard Java files, but -if my theory is correct- then I would only need to set the path.
    Welcome to the world of Linux where the world is not monolithic but complex, so the Developer (in this case JDevelop) makes assumptions which aren't always true.

    So, at least on openSUSE you'll have to find and install the missing library on your own, and it looks like wolfi may have tracked down the package for you.

    As for setting the Java path... Well, maybe. Fix the missing library first.
    Intermittently over time, installing Oracle SE JDK has automatically configured in distros which use update-alternatives like openSUSE, but not always.

    TSU

  9. #9

    Default Re: Jdeveloper on Open suse

    Hi Everyone
    I installed the library, but a new error came

    Code:
    x@linux-ercl:~/Oracle/Middleware/jdeveloper/jdev/bin> sudo ./jdev
    
    
    
    Oracle JDeveloper 11g Release 2 (11.1.2.4.0)
    Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 
    
    
    java.net.UnknownHostException: linux-ercl.site: linux-ercl.site
            at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
            at org.netbeans.CLIHandler$1.run(CLIHandler.java:599)
            at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
            at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
    Jun 30, 2013 7:33:09 AM oracle.ide.osgi.Activator start
    SEVERE: Failed to boot IDE cleanly
    java.awt.HeadlessException: 
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
            at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
            at java.awt.Window.<init>(Window.java:432)
            at java.awt.Frame.<init>(Frame.java:403)
            at java.awt.Frame.<init>(Frame.java:368)
            at javax.swing.JFrame.<init>(JFrame.java:158)
            at oracle.javatools.controls.MainWindow.<init>(MainWindow.java:46)
            at oracle.ide.IdeMainWindow.<init>(IdeMainWindow.java:243)
            at oracle.ideimpl.MainWindowImpl.<init>(MainWindowImpl.java:166)
            at oracle.ide.osgi.Activator.setupWindow(Activator.java:253)
            at oracle.ide.osgi.Activator.start(Activator.java:110)
            at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
            at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
            at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)
            at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
            at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
            at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
            at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
            at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
            at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
            at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:281)
            at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:251)
            at org.eclipse.osgi.launch.Equinox.start(Equinox.java:256)
            at org.netbeans.core.netigso.Netigso.start(Netigso.java:153)
            at org.netbeans.NetigsoFramework.turnOn(NetigsoFramework.java:172)
            at org.netbeans.ModuleManager.enable(ModuleManager.java:985)
            at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:318)
            at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:254)
            at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:286)
            at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
            at org.netbeans.core.startup.Main.start(Main.java:308)
            at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
            at java.lang.Thread.run(Thread.java:662)

  10. #10
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Jdeveloper on Open suse

    On 06/30/2013 06:46 AM, ali mearaj wrote:
    > a new error came


    are you sitting at the keyboard of the system where the JDK is
    installed/running directly in openSUSE?

    *or* is there a VM involved? or is the machine running openSUSE
    reached via a network (ssh or whatever)?

    and, (i have never run jdev so maybe this is a stupid question) is it
    normally required to launch jdev as root? just wondering, does the
    jdev documentation require root to launch it?

    if so, wouldn't it need root's environment? (which you don't get with
    default/vanilla sudo, but will if you launch with
    Code:
    su -c [path]jdev
    and, continuing with the *if* it is normal (or required, or safe) to
    run jdev as root, and deepening on where you sit in relation to the
    real/distant/virtual machine this might be helpful

    Code:
    /usr/bin/xdg-su -c [path]jdev
    in both of those cases "[path]" may be similar to one or both of
    these, depending on where are in the file system, and if you are
    yourself the user or root when issuing
    Code:
    ../
    ~/Oracle/Middleware/jdeveloper/jdev/
    --
    dd
    http://tinyurl.com/DD-Caveat

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •