Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
84 views
in Technique[技术] by (71.8m points)

watij - How to specify to the Java VM the -d32 parameter

I recently downloaded watij. on their website they say

Note: If you are running on a Mac you must add -d32 to your Java VM parameters.

I was wondering what the steps are to do this since they do not specify.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

adding -d32 to vm parameters means, when you run your app:

javac HelloWorld.java
java HelloWorld

Instead you do this:

javac HelloWorld.java
java -d32 HelloWorld

It specifies that the program will run in 32bit architecture.

To set JVM arguments from Eclipse, do this:
1. Right click on the class you want to run.
2. Click run configurations
3. Go to arguments tab and write "-d32" under VM arguments text box.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...