On 8/6/12 6:31 PM, Gary K Olson wrote:
> On 8/5/12 6:21 PM, Alexander Hansen wrote:
> 
>> To get system-java-dev you need both the Java runtime and the headers.
>> The Mountain Lion upgrade scrubs your old Java runtime.  Run "javac" to
>> force Software Update to download a new Java runtime for you, and after
>> that's done use "fink list -it system-java" to verify that you have
>> system-java-dev.
> 
> I did a javac on an old Welcome.java file and got the required Welcome.class 
> file, but I don't see any forced upgrade.  When I run fink list -it 
> system-java I get:
> 
> [MacBkPro:~/Macdev/java/htpjava4/Welcome]:-bash:508$: fink list -it 
> system-java
> Information about 5688 packages read in 11 seconds.
>  i    system-java3d   0-1     [virtual package representing Java3D]
>  i    system-javaai   0-1     [virtual package representing Java Advanced 
> Imaging]
> 
> If I run:
> 
> [MacBkPro:~/Macdev/java/htpjava4/Welcome]:-bash:509$: fink list system-java
> Information about 5688 packages read in 2 seconds.
>      system-java                               [virtual package]
>      system-java13           1.3-1             [virtual package representing 
> Java 1.3]
>      system-java14           1.4.2-1           [virtual package representing 
> Java 1.4.2]
>      system-java15           1.5.0-1           [virtual package representing 
> Java 1.5.0]
>      system-java16           1.6.0-1           [virtual package representing 
> Java 1.6.0]
>  i   system-java3d           0-1               [virtual package representing 
> Java3D]
>  i   system-javaai           0-1               [virtual package representing 
> Java Advanced Imaging]
> 
> If I try to run the program I just get this error message: Exception in 
> thread "main" java.lang.NoClassDefFoundError: Welcome1.  I assume this is 
> because, fink still doesn't know where the java system is. 

A miscompiled java file is _independent_ of Fink.  If _Apple's_ javac
didn't do the right thing, this means your Java installation is somehow
broken.

All fink's system-java* virtual packages do is detect *what is installed
on your system* and note it.

I do have the java jdk's installed (I downloaded the java developer file
after upgrading to 10.8, and it appears to be where it is supposed to be
in /Libraray/Java/JavaVirtualMachines/).
> 

On 10.8 I have:

$ ls /Library/Java/JavaVirtualMachines/
$
$ fink list -t system-java
Information about 5732 packages read in 1 seconds.
 i      system-java     1.6.0-1 [virtual package representing Java 1.6.0]
 i      system-java-dev 1.6.0-1 [virtual package representing Java SDK 1.6.0]
        system-java13   1.3-1   [virtual package representing Java 1.3]
 i      system-java14   1.4.2-1 [virtual package representing Java 1.4.2]
 i      system-java14-dev       1.4.2-1 [virtual package representing Java 1.4.2
development headers]
 i      system-java15   1.5.0-1 [virtual package representing Java 1.5.0]
 i      system-java15-dev       1.5.0-1 [virtual package representing Java 1.5.0
development headers]
 i      system-java16   1.6.0-1 [virtual package representing Java 1.6.0]
 i      system-java16-dev       1.6.0-1 [virtual package representing Java 1.6.0
development headers]
 i      system-java3d   0-1     [virtual package representing Java3D]
 i      system-javaai   0-1     [virtual package representing Java Advanced 
Imaging]

I'm using the JDK from Xcode 4.4.

> Do I need to do something else to force a software update?
> 
> Gary K Olson
> 
> 

I ran _just_ "javac", without acting on a file.
http://osxdaily.com/2012/08/01/install-java-in-os-x-mountain-lion/
suggests using "java -version".  Beyond that,  I'm not sure.
-- 
Alexander Hansen, Ph.D.
Fink User Liaison
My package updates: http://finkakh.wordpress.com/

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to