Avatar
Please consider registering
guest
sp_LogInOut Log Insp_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 RSSsp_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: 1068
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: 1068
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: adalbertoodonova
Guest(s) 44
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
gailschroder72, willardmackellar, vnedrenie_koPi, shaylaholton205, PhilesiaGen, rosaurathiel524, Arthurobext, stefanmacneil3, ralni, illuminationscanada
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1