Author Topic: Java Live Erros Mac Version  (Read 3384 times)

quackerjeff

  • Community Member
  • Posts: 11
  • Hero Points: 1
Java Live Erros Mac Version
« on: June 30, 2012, 01:50:40 AM »
Does anyone know if Java Live Errors work in the Mac version?  I know in the other versions you have to have/use the Sun (Oracle) jdk.
In the options, I'm using "/Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/",  the same as the Installation Directory,
for the path to the jdk, but I'm still getting an error "Path to JDK 1.6 or later must be valid in order to use Live Errors."


Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: Java Live Erros Mac Version
« Reply #1 on: July 01, 2012, 04:21:04 PM »
That error will be thrown if SlickEdit has detected that the location specified for JDK 1.6 is not valid.  I can see that it will attempt to validate the install by finding a javac, a java executable which is version 1.6 or later, and a JVM lib (ie. jvm.dll, libjvm.so, etc.) which is required for SlickEdit's Java Live Errors.

Now, I am not currently in the office so I don't have access to a Mac at this moment, but do those components exist at "/Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/" ?  If not, do they exist somewhere else under your Mac JDK 1.6 installation?  If there is something going haywire here for configuring Java Live Errors on Macs we will work to get it fixed ASAP...but hopefully this helps.

- Ryan

quackerjeff

  • Community Member
  • Posts: 11
  • Hero Points: 1
Re: Java Live Erros Mac Version
« Reply #2 on: July 01, 2012, 04:49:33 PM »
Yeah, things exist there.  Here's my ls -l output
BigMac:~ jeffrey$ ls -l /Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/
total 218992
-rw-r--r--   1 root  wheel    364284 Dec 15  2011 appledocs.jar
drwxr-xr-x  41 root  wheel      1394 Jan  2 12:47 bin
lrwxr-xr-x   1 root  wheel         3 Jan  2 12:47 bundle -> ../
-rw-r--r--   1 root  wheel  38902041 Dec 15  2011 docs.jar
lrwxr-xr-x   1 root  wheel        51 Jan  2 12:47 include -> /System/Library/Frameworks/JavaVM.framework/Headers
drwxr-xr-x  42 root  wheel      1428 Jan  2 12:47 lib
drwxr-xr-x  41 root  wheel      1394 Dec 15  2011 man
-rw-r--r--   1 root  wheel  72845633 Dec 15  2011 src.jar


And then the ls -l of bin underneath that:

BigMac:~ jeffrey$ ls -l /Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/bin
total 3208
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 appletviewer
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 apt
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 extcheck
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 idlj
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jar
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jarsigner
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 java
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 javac
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 javadoc
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 javah
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 javap
lrwxr-xr-x  1 root  wheel      67 Jan  2 12:47 javaws -> /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jconsole
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jdb
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jhat
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jinfo
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jmap
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jps
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jrunscript
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jsadebugd
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jstack
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jstat
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 jstatd
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 keytool
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 native2ascii
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 orbd
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 pack200
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 policytool
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 rmic
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 rmid
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 rmiregistry
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 schemagen
-rwxr-xr-x  1 root  wheel  100768 Jan  2 12:47 serialver
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 servertool
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 tnameserv
-rwxr-xr-x  1 root  wheel  250016 Jan  2 12:47 unpack200
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 wsgen
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 wsimport
-rwxr-xr-x  1 root  wheel  100688 Jan  2 12:47 xjc


FYI: The directory "/Library/Java/JavaVirtualMachines/1.6.0_30-b12-404.jdk/Contents/Home/" is what SlickEdit automatically detected.

Thanks!

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: Java Live Erros Mac Version
« Reply #3 on: July 03, 2012, 02:19:22 PM »
This is not (yet) supported. There are two issues right now.
1. The directory structure is not the same on the Mac. The libjvm.dylib is found under Contents/Libraries, and not under a 'jre' subdirectory like is currently assumed for other *nix platforms. This is relatively easy to fix in the Slick-C source, but doesn't solve the real problem, which is...
2. The SlickEdit application is a Universal 32/64 bit binary, and will run in 64 bit mode if your processor is a Core 2 Duo or higher. But the libjvm.dylib (and all the other libraries) are 32 bits. And we don't currently handle loading the 32 bit jvm libraries from a 64 bit application. (And even forcing SE to launch as 32-bit only, or stripping the 64 bit out of the binaries doesn't work)

In sort, we'll have to rework this for the Mac for version 18.