The fact that the code worked once in one execution environment proves nothing 
about its correctness.

Please do as you have been repeatedly advised and show your code and at least 
an appropriate sample of your data and give full details about the two ways you 
are trying to execute your program. Otherwise there is little point in trying 
to help you.

ajs6f

> On May 27, 2018, at 10:02 AM, javed khan <javedbtk...@gmail.com> wrote:
> 
> Hello Lorenz, the problem is not in the code because it works fine on
> another computer. When I open the same file on other system (both have same
> version of java ), it just highlight the error everywhere asLiteral() and
> asResource() is mentioned. When I run the code , it gives me the error
> mentioned above "content is not allowed in prolog" which is usually caused
> by whitespace etc.
> 
> On Sun, May 27, 2018 at 11:54 AM, Lorenz Buehmann <
> buehm...@informatik.uni-leipzig.de> wrote:
> 
>> sorry to say that, but **this** is almost **no information** to help you
>> ...
>> 
>> 1) previously you said, that you're getting compiler errors but didn't
>> show any code ...
>> 
>> 2) no you're showing RDF format errors. again,, you're not showing us
>> the relevant information which in fact is the data
>> 
>> 
>> On 27.05.2018 03:15, javed khan wrote:
>>> Thanks for your reply
>>> 
>>> I use almost the same versions of Java, Netbeans and Protege as my
>> previous
>>> system.
>>> 
>>> The error is:
>>> 
>>> ERROR [main] (RDFDefaultErrorHandler.java:44) -
>>> file:///C:/Users/Utente/Downloads/LAPTOP/getset/(line 1 column 1):
>> Content
>>> is not allowed in prolog.
>>> Exception in thread "main" org.xml.sax.SAXParseException; systemId:
>>> file:///C:/Users/Utente/Downloads/LAPTOP/getset/; lineNumber: 1;
>>> columnNumber: 1; Content is not allowed in prolog.
>>> 
>>> On Sun, May 27, 2018 at 2:05 AM, Bruno P. Kinoshita <
>>> brunodepau...@yahoo.com.br.invalid> wrote:
>>> 
>>>> Very likely something in your environment, especially given it's working
>>>> on the other laptop.
>>>> I think it won't be easy for others to spot what's wrong, without
>> looking
>>>> at the code, and without knowing more about your environment.
>>>> Might be easier for yourself to compare the two environments and try to
>>>> isolate what's different, especially Java version, and IDE
>> configuration.
>>>> CheersBruno
>>>> 
>>>>      From: javed khan <javedbtk...@gmail.com>
>>>> To: users@jena.apache.org
>>>> Sent: Sunday, 27 May 2018 11:12 AM
>>>> Subject: Error in Jena code, when switch to another computer
>>>> 
>>>> Hello
>>>> 
>>>> I have created an application using Jena and Java swings. It was working
>>>> fine. I switched to another laptop and opened the same file on new
>> laptop
>>>> (I re-installed Netbeans), but it gives me error everywhere asLiteral()
>> and
>>>> asResource() are used. The  asLiteral() and asResource() are used in
>>>> multiple places but everywhere it is highlighted as error.
>>>> 
>>>> Could you please highlight the issue ? What could be the problem?
>>>> 
>>>> Regards
>>>> 
>>>> 
>>>> 
>>>> 
>> 
>> 

Reply via email to