Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

Error using @Library with multiple linux file names
 Post subject: Error using @Library with multiple linux file names Post rating: 0   New post Posted: Sat 26 Nov, 2011, 13:20 

User rating: -
Hello,

I have been getting an error when trying to import multiple libraries using linux style file names and the @Library() annotation.

For example, I downloaded the example code from the related wiki article: https://www.dukascopy.com/wiki/index.php?title=Include_libraries

Then I exported mychart.jar and changed the line in ChartTest.java:
@Library("C:/temp/mychart.jar;C:/temp/jcommon-1.0.16.jar;C:/temp/jfreechart-1.0.13.jar")

so that it uses linux style file names
@Library("/home/john/Documents/mychart.jar;/home/john/Documents/jfreechart-1.0.14/lib/jcommon-1.0.17.jar;/home/john/Documents/jfreechart-1.0.14/lib/jfreechart-1.0.14.jar")


Then when compiling I get the error:
Quote:
11:47:51 File /home/john/Documents/mychart.jar;/home/john/Documents/jfreechart-1.0.14/lib/jcommon-1.0.17.jar;/home/john/Documents/jfreechart-1.0.14/lib/jfreechart-1.0.14.jar not found.


It seems that the entire string is being interpreted as a single file name.
Perhaps that is because ';' is a valid character in a linux file name so the whole string is a valid file name.

I tried using other characters as the separator but still got errors.

Does anyone know of a fix or workaround?

BTW my flavour of linux is Ubuntu 10.04 LTS 64bit but that shouldn't matter here...

Cheers ;)
John


 
 Post subject: Re: Error using @Library with multiple linux file names Post rating: 0   New post Posted: Tue 06 Dec, 2011, 09:35 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Path separator is according to:
https://docs.oracle.com/javase/1.4.2/doc ... hSeparator
For Linux it is column character - ":".


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com