 |
 |
JavaNNS on Mac-Intel
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
Hello,
have anyone ever used JavaNNS on a Mac-Intel?
University of Tübingen: JavaNNS
It's is a simulator of neural networks.
There is a Mac version, but I wasn't able to make it work on Mac-Intel.
Could anyone help me?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Oct 2000
Location: Los Angeles
Status:
Offline
|
|
It works for me (G5), not that I know what to do with it.  Sorry, I can't help you with the Intel/Rosetta question.
|

"The natural progress of things is for liberty to yield and government to gain ground." TJ
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
Haven't anyone tried it on a mac-intel?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
In the JavaNNS' download page ( Index of /downloads/JavaNNS) there is the JavaNNS' source zip file. Could anyone explain me how to build it? or build it on a mac-intel and give to the World the JavaNNS-Mac-Intel version?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
Looks like you need to compile and install Apache's Ant first, and then run:
ant compile
ant jar
ant run
You may need to run ant settarget too if your CPU isn't detected properly.
I would install Ant by installing Macports, and then running:
sudo port -v install apache-ant
You'll need your GCC compiler installed, which is a part of Apple's XCode install.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
I installed Ant with Darwinports. Then I ran:
computer:~/Desktop/JavaNNS guido$ ant compileBuildfile: build.xml
init:
[mkdir] Created dir: /Users/guido/Desktop/JavaNNS/dist
compile:
[javac] Compiling 98 source files to /Users/guido/Desktop/JavaNNS
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
BUILD SUCCESSFUL
Total time: 3 seconds
computer:~/Desktop/JavaNNS guido$ ant jarBuildfile: build.xml
init:
compile:
loaddefplatform:
selectplatform:
[input] No platform setting could be found.
[input] Please select the desired target platform:
[input] 1) Windows
[input] 2) Solaris
[input] 3) Linux
[input] 4) Mac
[input] c) Cancel build process (1, 2, 3, 4, c)
4
kernelinterface:
[echo]
[echo] Compiling for target platform Mac
[echo] Using KernelInterface /Users/guido/Desktop/JavaNNS/KernelInterface/precompiled/Mac/libSNNS_jkr.jnilib
[echo]
jar:
[jar] Building jar: /Users/guido/Desktop/JavaNNS/dist/JavaNNS.jar
BUILD SUCCESSFUL
Total time: 3 seconds
computer:~/Desktop/JavaNNS guido$ ant runBuildfile: build.xml
init:
compile:
run:
[java] Exception in thread "main" java.lang.UnsatisfiedLinkError: Couldn?t find the JavaNNS.jar file
[java] at javanns.Network.extractLibraryFromJar(Network.java :137)
[java] at javanns.Network.loadKernel(Network.java:115)
[java] at javanns.Network.<init>(Network.java:72)
[java] at javanns.Snns.<init>(Snns.java:175)
[java] at javanns.Snns.appletMain(Snns.java:302)
[java] at javanns.Snns.main(Snns.java:282)
I think the problem is the kernel interface that it doesn't support mac-intel.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
This error message indicates that it cannot find JavaNNS.jar, not a platform related issue.
I'll look at this again as soon as I can.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
I tried another time, with JavaNNS.jar in the right folder:
computer:~/Desktop/JavaNNS guido$ ant run
Buildfile: build.xml
init:
compile:
run:
[java] java.lang.Exception: The system couldn?t find the library SNNS_jkr
[java] JavaNNS couldn?t start.
[java] at javanns.Network.<init>(Network.java:72)
[java] at javanns.Snns.<init>(Snns.java:175)
[java] at javanns.Snns.appletMain(Snns.java:302)
[java] at javanns.Snns.main(Snns.java:282)
BUILD SUCCESSFUL
Total time: 10 seconds
It's the same error that the binary mac distribution give me.
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
You probably shouldn't have to move files around, I'd contact the developers or subscribe to the project mailing list for help with installation.
Usually the Mac is an afterthought with many Unix based projects, you honestly might fare better running Linux or FreeBSD or something... I see that FreeBSD has a port for JavaNNS meaning that if you were running FBSD, you'd have this installed and running by now.
Since you're running an Intel Mac, why not try running Linux or FreeBSD in a virtualized environment?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
I use JavaNNS on an other pc with linux (ubuntu), but I like to use it on my Mac. I tried to contact developers, but nobody answered me.
Which virtualized environment do you refer to?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Sep 2007
Status:
Offline
|
|
Has anyone found a way to run JavaNNS on an Intel Mac?
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Feb 2008
Status:
Offline
|
|
I compiled an Intel Mac version.
A jarfile containing the jni kernel:
GigaSize.com: Host and Share your Files
How to do it yourself:
1) Build SNNS on your Mac. Fix the MAXINT problems, this occurs only in a few files and can be fixed by a #define in the top of the source.
2) Compile the jni library:
cc -c -I/System/Library/Frameworks/JavaVM.framework/Headers javanns_KernelInterface.c
cc -dynamiclib -o ~/Desktop/JavaNNS/KernelInterface/precompiled/Mac/libSNNS_jkr.jnilib -lkernel -lfunc -lfl -L. -framework JavaVM javanns_KernelInterface.o
3) Create the jar:
ant clean
ant jar
And voila, it's there.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2007
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2008
Status:
Offline
|
|
Originally Posted by Tader
I compiled an Intel Mac version.
A jarfile containing the jni kernel:
GigaSize.com: Host and Share your Files
How to do it yourself:
1) Build SNNS on your Mac. Fix the MAXINT problems, this occurs only in a few files and can be fixed by a #define in the top of the source.
2) Compile the jni library:
cc -c -I/System/Library/Frameworks/JavaVM.framework/Headers javanns_KernelInterface.c
cc -dynamiclib -o ~/Desktop/JavaNNS/KernelInterface/precompiled/Mac/libSNNS_jkr.jnilib -lkernel -lfunc -lfl -L. -framework JavaVM javanns_KernelInterface.o
3) Create the jar:
ant clean
ant jar
And voila, it's there.
The link doesn't work anymore.
Can you open another one?
Thank you very much. 
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2008
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2008
Status:
Offline
|
|
I did the process pointed out by xeutrex. There's more to it, though...
Anyway, the JavaNNS.jar version for Intel Mac is available in here.
This is the detailed do-it-yourself process I used.
Enjoy
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: May 2008
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2008
Status:
Offline
|
|
Credits to the previous process sketch are due to Tader instead.
Sorry about that.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|