How to install WebObjects in Ubuntu for free(III)
2008-06-04 08:15
531 查看
Right now you got WebObjects frameworkes, Eclipse and WOLips on your Linux box. Next question is how to config/setup them together.
1. wobuild.properties file
After you open WOLips in Eclipse, the wobuild.properties file is created in your box.
for example, my WO stuff is sitting under /home/username/Apple, the new file would be in /home/username/Library folder.
#Thu Dec 04 08:20:52 GMT+12:00 2008
wo.system.root=/home/username/Apple/System
wo.user.frameworks=/home/username/Library/Frameworks
wo.system.frameworks=/home/username/Apple/System/Library/Frameworks
wo.bootstrapjar=/home/username/Apple/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
wo.network.frameworks=/Network/Library/Frameworks
wo.api.root=/home/username/Apple/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/
wo.network.root=/Network
wo.extensions=/home/username/Apple/Library/WebObjects/Extensions
wo.user.root=/home/username
wo.local.frameworks=/home/username/Apple/Library/Frameworks
wo.apps.root=/home/username/Apple/Library/WebObjects/Applications
wo.local.root=/home/username/Apple/
I think that's all basic setup for development environment in Ubuntu.
2. Ubuntu and Eclipse
One thing you need to do is install java-1.5.0-sun version, not the default java with Ubuntu.
Then in Eclipse, Window->Preferrences->Java->installed JREs, select java-1.5-sun (not java-1.5.0-gcj version).
3. Test WO by your own default WO application
How do you know you are the right track?under WOLips perspective
In Eclipse->NEW ->WebObjects Application->Project name (TEST)-> Finish
Right click and Run as WOApplication, select Application ->your.app (default)
Then copy the URL like: http://127.0.0.1:52469/cgi-bin/WebObjects/TEST.woa
to your browser, you can get "hello world" text in the page.
If you got 127.0.1.1 in URL, you need to modify /etc/hosts file change 127.0.1.1 to 127.0.0.1
in WOlips change WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects.
4. Run the existing WO example applications
I copied all examples source from Apple/Developer/Examples/JavaWebObjects to my workspace.
in Eclipse, Import ->Existing projects into Workspace -> NEXT-> select root dir to "HelloWorld" in your workspace -> Finish
If you got the little red x at Chinese.lproj, just delete it from your project. Don't know why, i think it's encoding problem.
IN Eclipse, change project properties, change the Text file encoding to UTF-8.
Run WO application
Right click HellowWorld project and Run as WOApplication, select Application ->webobjectsexamples.helloworld.
then link to your URL in your Console.
5. WONDER
WONDER is perfect framework for WO. There are some new frameworks, ajax frameworks, examples and WOAdaptor source for Apache2 for Linux.
You can follow the tutorial in http://wiki.objectstyle.org web site. try example in WONDER project as well.
enjoy it.
本文出自 “我爱我家” 博客,请务必保留此出处http://speedooo.blog.51cto.com/226772/80213
1. wobuild.properties file
After you open WOLips in Eclipse, the wobuild.properties file is created in your box.
for example, my WO stuff is sitting under /home/username/Apple, the new file would be in /home/username/Library folder.
#Thu Dec 04 08:20:52 GMT+12:00 2008
wo.system.root=/home/username/Apple/System
wo.user.frameworks=/home/username/Library/Frameworks
wo.system.frameworks=/home/username/Apple/System/Library/Frameworks
wo.bootstrapjar=/home/username/Apple/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
wo.network.frameworks=/Network/Library/Frameworks
wo.api.root=/home/username/Apple/Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/
wo.network.root=/Network
wo.extensions=/home/username/Apple/Library/WebObjects/Extensions
wo.user.root=/home/username
wo.local.frameworks=/home/username/Apple/Library/Frameworks
wo.apps.root=/home/username/Apple/Library/WebObjects/Applications
wo.local.root=/home/username/Apple/
I think that's all basic setup for development environment in Ubuntu.
2. Ubuntu and Eclipse
One thing you need to do is install java-1.5.0-sun version, not the default java with Ubuntu.
Then in Eclipse, Window->Preferrences->Java->installed JREs, select java-1.5-sun (not java-1.5.0-gcj version).
3. Test WO by your own default WO application
How do you know you are the right track?under WOLips perspective
In Eclipse->NEW ->WebObjects Application->Project name (TEST)-> Finish
Right click and Run as WOApplication, select Application ->your.app (default)
Then copy the URL like: http://127.0.0.1:52469/cgi-bin/WebObjects/TEST.woa
to your browser, you can get "hello world" text in the page.
If you got 127.0.1.1 in URL, you need to modify /etc/hosts file change 127.0.1.1 to 127.0.0.1
in WOlips change WOAdaptorURL=http://127.0.0.1/cgi-bin/WebObjects.
4. Run the existing WO example applications
I copied all examples source from Apple/Developer/Examples/JavaWebObjects to my workspace.
in Eclipse, Import ->Existing projects into Workspace -> NEXT-> select root dir to "HelloWorld" in your workspace -> Finish
If you got the little red x at Chinese.lproj, just delete it from your project. Don't know why, i think it's encoding problem.
IN Eclipse, change project properties, change the Text file encoding to UTF-8.
Run WO application
Right click HellowWorld project and Run as WOApplication, select Application ->webobjectsexamples.helloworld.
then link to your URL in your Console.
5. WONDER
WONDER is perfect framework for WO. There are some new frameworks, ajax frameworks, examples and WOAdaptor source for Apache2 for Linux.
You can follow the tutorial in http://wiki.objectstyle.org web site. try example in WONDER project as well.
enjoy it.
本文出自 “我爱我家” 博客,请务必保留此出处http://speedooo.blog.51cto.com/226772/80213
相关文章推荐
- How to install WebObjects in Ubuntu for free(II)
- How to install WebObjects in Ubuntu for free(I)
- How To Install Flash Player In Ubuntu 10.04 Lucid Lynx,install firefox flash plugin addon for ubuntu
- How to install oracle 10g for Linux in ubuntu
- windows 10中的ubuntu子系统安装桌面环境的方法(How to install Ubuntu-desktop in windows 10 Subsystem for Linux)
- How to Install CURL library for PHP in Ubuntu box
- [Ubuntu] How to install memcache in Ubuntu 10.10 with xampp
- How To Install Mate Desktop In Ubuntu 14.04 & 14.10
- how to config the tftpd-hpa server in the ubuntu using for remote tftp client '-p' and '-r' command
- How to Install Jexus Web Server 5.3 on Ubuntu 13.04
- NLP--- How to install the tool NLTK in Ubuntu ?
- How to Install GCC 4.8 via PPA in Ubuntu 12.04, 13.04, 10.04
- How to install sun java in ubuntu
- HowTo Install Redmine in Ubuntu - Redmine
- How to install Skype in Ubuntu 7.10?
- (转) How to install eclipse in ubuntu 12.04
- How to install RabbitVCS for Ubuntu
- HOWTO_Change Default Boot Order for Grub in Ubuntu
- How to Install ATI/AMD Catalyst 13.4 Linux Driver in Ubuntu 10.04
- How to install skype in Ubuntu (12.04) system?