Java Question How do I convert jar file from java files?

Theera

Expert
Licensed User
Longtime User
Hi all,
I've just download SDK for Pebble's watch,but it has no jar file,only has the source code(java files).
I would like someone help me only convert jar file in order to could learn to create a new wrapper as PebbleKitWrapper.
 

Attachments

  • PebbleKit.zip
    17.2 KB · Views: 472

Theera

Expert
Licensed User
Longtime User
Hi Erel,
If I compile the source code(in post#1) for the first time,I will get jar file(DebbleKit.jar) and get xml file then the second time,I use @DependsOn(values={"DebbleKit.jar"}) and compile again, Could I do it? (I think that If DebbleKit changed,I don't change it again,it's easy to manage)
 

Attachments

  • PebbleKitJar.zip
    18.6 KB · Views: 452
Last edited:

Theera

Expert
Licensed User
Longtime User
Hi Erel,
I 've the example which is about weather,in the example,it use both of import java libraries. That is mean,I must compile both of them in the first time,and then use @DependsOn(values={"PebbleKit.jar","PebbleDictionary.jar"}) for compile the second, Is it right? Do you have any additional guides for me?
 

Attachments

  • ExampleWeatherActivity.zip
    1.9 KB · Views: 447
  • partOfExample.png
    23.4 KB · Views: 475
Last edited:

Theera

Expert
Licensed User
Longtime User
I prefer to select using SLC for this case. Now I'm doing this process,but I've error. Who someone help me?


P.S. I have never learn java coding before. I learn it in this forum.
 

Attachments

  • NewTest.png
    9.6 KB · Views: 460
  • PebbleKit.zip
    11.3 KB · Views: 454
Last edited:

Theera

Expert
Licensed User
Longtime User
I felt discouraged. Unable to slc is correct, I will come back again in this new On the Java language than it is.
 

Theera

Expert
Licensed User
Longtime User
Hi all,
I try to do another strategy,but it's still eror.
 

Attachments

  • PebbleWeatherWrapper.zip
    12.8 KB · Views: 463
  • try_another_strategy.png
    10.6 KB · Views: 439

Theera

Expert
Licensed User
Longtime User
Hi all,
I'm tried to learn Java for Android,but I have problem,what variable could instead of R.layout in line 43 at picture step2.png
(Now I integrate weather.java at the same directory of PebbleKit.java and set the same package which shown at picture step1.png)
 

Attachments

  • step1.png
    6.1 KB · Views: 440
  • step2.png
    6 KB · Views: 440
  • PebbleKit.zip
    39 KB · Views: 467

Theera

Expert
Licensed User
Longtime User
Hi Erel,
I would like to tell you that I'm already to understand in your SLC Example(attached it in my website),but I don't understand this.
 

coslad

Well-Known Member
Licensed User
Longtime User
[QUOTE="Erel, post: 184289, member: You can also add the source code directly.[/QUOTE]

Hi, you said that I can add source Java code directly to an b4a project? How can I do?