akhil2909 / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

[Important]LInkedin-J Package do not work on 1.5JDK #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Linkedin-j author:
      I want to build a linkedin-based app for my customer, but the jar do
not work on 1.5JDK because of the Marshall Class.
      How to deal with it. Need your help.

       Thanks.

Original issue reported on code.google.com by seashell752@gmail.com on 11 Dec 2009 at 8:43

GoogleCodeExporter commented 9 years ago
This is a known issue. The library uses jaxb for xml binding. Java SE 1.6 
includes
jaxb so I did not include it in the distribution. If you are using an older 
version
of java, you should be able to make it work by downloading the jaxb RI from
https://jaxb.dev.java.net/. Make sure all the required jars are in your 
classpath.

I have not tried it on older versions of java so do let me know how it goes.

I will also include a copy of jaxb ri jars in the latest snapshot today.

Thanks for your help.

Regards
Nabeel Mukhtar

Original comment by nabeelmukhtar on 11 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
Thanks for your support.
That's very useful.
But our client will have another version for android users. The android SDK is a
subversion of JDK1.5.

Will your latest snapshot support the android? I think it is very important to
support android for Linkedin-j, because lots of linkedin fans using the 
android, they
advise me to provide an android version.

Hope for your answer :).
Thanks.

Original comment by seashell752@gmail.com on 11 Dec 2009 at 12:13

GoogleCodeExporter commented 9 years ago
I will see if it can support android. Otherwise I will add an enhancement 
request for
it. No ETA though :)

Thanks for your help.

Regards
Nabeel Mukhtar

Original comment by nabeelmukhtar on 11 Dec 2009 at 1:02

GoogleCodeExporter commented 9 years ago
hi nabeelmukhtar
       Thanks for your help ;), i think i should build an android-support sdk by
myself. I need you help to modify this sdk. so can you give me advises on my 
Coding
as a partner ?

        Firstly, how can i build this sdk without jaxb. What class should i modify?

Original comment by seashell752@gmail.com on 11 Dec 2009 at 2:41

GoogleCodeExporter commented 9 years ago
Check the latest distribution (linkedin-j-0.1-SNAPSHOT-2009-12-14.zip), it also
includes a DOM based client which is currently not complete. I hope to do so in 
a day
or two.
To compile without jaxb, you will have to remove all the implementation source 
files
from com.google.code.linkedinapi.schema.impl package and also
com.google.code.linkedinapi.client.impl.LinkedInApiJaxbClient and its 
references.
Additionally you will have to remove all jaxb annotations from the following 
enum
types in the package: com.google.code.linkedinapi.schema
NetworkUpdateContentType
InviteConnectType
NetworkUpdateReturnType
You can currently use DOM on android by using
com.google.code.linkedinapi.client.impl.LinkedInApiDomClient. You can make it 
the
default by modifying ApplicationConstants.properties file. I think it should 
work on
android without any issue. However some methods that post content to LinkedIn 
are not
yet implemented. They will be implemented by tomorrow. If you run into any 
issues
please let me know.
If you want to use SAX parsing, you will have to create your own client by 
extending
BaseLinkedInApiClient and implementing abstract methods like unmarshallObject,
marshallObject etc. Have a look at the DOM client to see how its done.

Hope that helps.

Regards
Nabeel Mukhtar

Original comment by nabeelmukhtar on 14 Dec 2009 at 11:42

GoogleCodeExporter commented 9 years ago
Thank you help..

Original comment by zzw2...@gmail.com on 15 Dec 2009 at 2:16

GoogleCodeExporter commented 9 years ago
Thanks...

Original comment by zzw2...@gmail.com on 15 Dec 2009 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by nabeelmukhtar on 16 Dec 2009 at 7:56

GoogleCodeExporter commented 9 years ago
HI nabeel,
i am gettin below error when i try to copile using jdk 1.5,
is linkedin-j api not suport for jdk 1.5 ,if support plz let me know the 
solution,
currently we r using jdk 1.5 for our application,
jars used are
commons-cli-1.2.jar
commons-codec-1.3.jar
linkedin-j.jar
signpost-core-1.1-SNAPSHOT.JAR

showing error in 
linkedin-j.jar

D:\mojuix\RandD\linked>javac LinkAuth.java
LinkAuth.java:8: cannot access com.google.code.linkedinapi.client.LinkedInApiCli
ent
bad class file: D:\mojuix\RandD\linked\linkedin-j.jar(com/google/code/linkedinap
i/client/LinkedInApiClient.class)
class file has wrong version 50.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
import com.google.code.linkedinapi.client.LinkedInApiClient;
                                          ^
1 error

Original comment by settir...@gmail.com on 14 Apr 2010 at 6:41

GoogleCodeExporter commented 9 years ago
Hi settiravi
It seems you will have to re-compile the code of linkedin-j on your jdk. 
Checkout the
source or download the archive and build it. If the JDK does not support jaxb, 
you
will have to include jaxb jars in the jaxb-lib directory in your classpath.

Hope this helps

Regards

Nabeel Mukhtar

Original comment by nabeelmukhtar on 15 Apr 2010 at 9:42

GoogleCodeExporter commented 9 years ago
hi 
i am also facing the issue i had try to compile linkedin-j.jar on jdk1.5
i am getting the exception
    The method getOAuthRequestToken() of type LinkedInOAuthServiceImpl must override a superclass method
pls help me.

Original comment by tripathi...@gmail.com on 7 Dec 2012 at 7:17