Encoding mismatch or a stray xml byte order mark: 
http://illegalargumentexception.blogspot.com/2010/09/java-content-is-not-allowed-in-prolog.html

> On May 26, 2018, at 20:15, javed khan <javedbtk...@gmail.com> 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