Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Getting an error while exporting jar file
December 12, 2014
8:39, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

Hi guys,

I get some problems with the java SDK, when I run my application with Eclipse, it works perfectly.
But when I export the application as a .jar file, application stays blocked on the “client.connect()” method .

Is somebody able to help me?

Thanks

December 12, 2014
11:29, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Without more information it’s hard to say
Can you post the console log? Which library handling option did you chose in eclipse export page? Which security mode you are using (none or something else)? Which SDK version are you using (version number)?

– Bjarne

December 12, 2014
12:48, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

There is nothing on the console log because it works with Eclipse.
I tried to connect with security none, Basic128 sign and Basic 256 and it’s always the same problem
In Eclipse I exported as a Runnable jar with all libraries inside.
My version of the sdk is 2.0.0-194

Tristan

December 12, 2014
13:21, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Can you try with “Copy required libraries into a sub-folder next to the generated JAR” option. At least the bouncy castle wont work if you package them as a single JAR (the bouncy castle jars are signed and merging them as one JAR will break the signature).

Also you could try with 2.0.2 as it contains a number of fixes http://www.prosysopc.com/produ…..e-history/

Also might be related: in case you use/have the log4j configuration file inside the jar, do not use PropertyConfigurator.configureAndWatch when initializing log4j (just configure).

December 12, 2014
13:32, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

It works with “Copy required libraries into a sub-folder next to the generated JAR” option.
Thank you for all.

Tristan

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 731

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

inilarythikibia, rickykennion, PromotionToold, HypromeImpupe, toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1