You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
more information needed on swiftjava macOS project xcode project setup for generated codes, more step by step details needed #9
./genswift.sh your.package your.jar not works for a JAR A which is dependent on JAR B or C.
it's solved by jar merging idea! I decompiled the jar and added to InteliJ !
created artifact JAR and tried swiftJava jar command worked 100% fine! (Credits to the people who helped me)
There are many things missing in README it's really a pain point for beginner to do this with minimal documentation.
macOS development needs following details in README.
after the generating files from JAR files next step for using it inside the XCODE for Running the project will be great!
what I have tried:
Create sample cocoa swift app from xcode.
2)Placed generated code in the xcode sample project folder. (after ./genswift.sh your.package your.jar)
3)how swiftjava.jar is generated ? we need to run swift build -Xlinker -L$JVM_LIBRARY_PATH -Xlinker -rpath -Xlinker $JVM_LIBRARY_PATH -Xlinker -ljvm ?
4>swiftjava.jar needed configured at xcode?
what are other steps? is there any build command needs to be added to configure while directly adding generated files in xcode cocoa app for connecting with JNI and jar file? where to put JAR file inside project folder structure? what are the frameworks needs to be added?
it will great if we get separated step by step instruction for using SwiftJava for Android, macOS etc!
changed the title [-]more info on swiftjava macOS project xcode project setup for generated codes more step by step details needed[/-][+]more information needed on swiftjava macOS project xcode project setup for generated codes, more step by step details needed[/+]on Apr 15, 2019
Activity
[-]more info on swiftjava macOS project xcode project setup for generated codes more step by step details needed[/-][+]more information needed on swiftjava macOS project xcode project setup for generated codes, more step by step details needed[/+]johnno1962 commentedon Apr 15, 2019
Hi, sorry for the delay in replying. You should just need to add the classes your application uses to ~/.swiftjava.jar and things should work. See: https://github.com/SwiftJava/java_swift/blob/6172ff68d6fc575f3f4b9adc2bc8e1362f1b1dd9/Sources/JNICore.swift#L183