how to convert - what is the command

56 views
Skip to first unread message

chrish

unread,
Oct 14, 2009, 3:29:28 PM10/14/09
to java2objc
HI,
I have downloaded all the code. Can you please let me know how to
execute it and what are the steps to convert java files to objective
C?

I am not able to find out. Any help will be great. Please help me.

Thanks and Kind Regards
Chrish

inder

unread,
Oct 16, 2009, 11:07:11 AM10/16/09
to java2objc
Hi,

I added instructions on using java2objc at: http://code.google.com/p/java2objc/wiki/UsageGuide

Let me know if these work for you.
Thanks
Inder

chrish

unread,
Oct 22, 2009, 12:21:24 PM10/22/09
to java2objc
Hi,
Thanks for your response. I have tried your instructions. In the first
step - i have run "run mvn eclipse:configure-workspace
eclipse:eclipse".

The above command created Java2ObjC\eclipse-ws folder but in that
folder there were not eclipse workspace files. It contains
only .metadata folder.

Not able to create eclipse workspace. Can you please me know what
might be the issue?

Thanks and Kind Regards
Chrish

chrish

unread,
Oct 22, 2009, 12:37:59 PM10/22/09
to java2objc
Hi,
Also when I am trying to run "java2objc.jar"
from C:\Java2ObjC\java2objc\target

I am getting following error. Looks like japa/parser/JavaParser class
missing.


C:\Java2ObjC\java2objc\target>java -cp java2objc.jar
com.googlecode.java2objc.ma
in.Main --outputdir=target C:/Java2ObjC/java2objc/examples/examples/
AssortedExam
ples.java
Exception in thread "main" java.lang.NoClassDefFoundError: japa/parser/
JavaParse
r
at
com.googlecode.java2objc.main.Main.parseJavaFileAndWriteObjcType(Main
.java:80)
at com.googlecode.java2objc.main.Main.execute(Main.java:75)
at com.googlecode.java2objc.main.Main.main(Main.java:68)
Caused by: java.lang.ClassNotFoundException: japa.parser.JavaParser
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 3 more

Can you please let me know what might be the issues?

Thanks and Kind Regards


On Oct 16, 4:07 pm, inder <inder...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages