How do I convert jar file into ObjC code?

115 views
Skip to first unread message

leo.jit...@gmail.com

unread,
Feb 3, 2015, 10:04:29 AM2/3/15
to j2objc-...@googlegroups.com
I have a jar file (but dont have the source code), can I convert it to obj C?

I tried following command
MacBook-Pro:j2objc-0.9.6 user1508$ ./j2objc -classpath utils.jar

Result:
j2objc: no source files
Usage: j2objc <options> <source files>
use --help for a list of possible options

Tom Ball

unread,
Feb 3, 2015, 10:37:21 AM2/3/15
to j2objc-...@googlegroups.com
J2ObjC only works on source code. You can try RoboVM, which works on classfiles. However, not having source often means you don't own or have the right to modify that code -- doing so in that case is stealing.

--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gavin Lee

unread,
Feb 3, 2015, 11:28:31 AM2/3/15
to j2objc-...@googlegroups.com, leo.jit...@gmail.com
I think you need to download the source code of the jar file and put it after -sourcepath tag. Refer to this post.

leo.jit...@gmail.com

unread,
Feb 3, 2015, 4:44:30 PM2/3/15
to j2objc-...@googlegroups.com, leo.jit...@gmail.com
Got it, thanks for your response.

leo.jit...@gmail.com

unread,
Feb 3, 2015, 4:44:54 PM2/3/15
to j2objc-...@googlegroups.com, leo.jit...@gmail.com

Got it, thanks for your response.

On Tuesday, 3 February 2015 11:28:31 UTC-5, Gavin Lee wrote:
Reply all
Reply to author
Forward
0 new messages