Click here to Skip to main content
15,892,059 members
Home / Discussions / Java
   

Java

 
GeneralRe: How can I use relative path in java to read a file ? Pin
Richard MacCutchan30-Jun-10 3:52
mveRichard MacCutchan30-Jun-10 3:52 
GeneralRe: How can I use relative path in java to read a file ? Pin
002comp30-Jun-10 17:49
002comp30-Jun-10 17:49 
GeneralRe: How can I use relative path in java to read a file ? Pin
Richard MacCutchan30-Jun-10 21:28
mveRichard MacCutchan30-Jun-10 21:28 
GeneralRe: How can I use relative path in java to read a file ? [modified] Pin
002comp30-Jun-10 18:14
002comp30-Jun-10 18:14 
GeneralRe: How can I use relative path in java to read a file ? Pin
Richard MacCutchan30-Jun-10 21:27
mveRichard MacCutchan30-Jun-10 21:27 
GeneralRe: How can I use relative path in java to read a file ? Pin
002comp30-Jun-10 22:09
002comp30-Jun-10 22:09 
GeneralRe: How can I use relative path in java to read a file ? Pin
002comp1-Jul-10 1:43
002comp1-Jul-10 1:43 
AnswerRe: How can I use relative path in java to read a file ? Pin
anand kr25-Aug-10 16:41
anand kr25-Aug-10 16:41 
Yogesh,

If you are talking about reading a resource from relative path with respect to current class, consider using this snippet:-

1) getClass().getResource("url") which will give you URL instance which can be used to read a resource
2) getClass().getResourceAsStream("file or any other resource") which returns an InputStream
anand in dnr

QuestionHeap space option -xms and -xmx Pin
002comp22-Jun-10 19:40
002comp22-Jun-10 19:40 
AnswerRe: Heap space option -xms and -xmx Pin
Cedric Moonen22-Jun-10 20:22
Cedric Moonen22-Jun-10 20:22 
GeneralRe: Heap space option -xms and -xmx Pin
002comp22-Jun-10 20:53
002comp22-Jun-10 20:53 
GeneralRe: Heap space option -xms and -xmx Pin
David Skelly22-Jun-10 22:33
David Skelly22-Jun-10 22:33 
GeneralRe: Heap space option -xms and -xmx Pin
002comp22-Jun-10 22:53
002comp22-Jun-10 22:53 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 0:56
002comp23-Jun-10 0:56 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 1:45
David Skelly23-Jun-10 1:45 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) [modified] Pin
002comp23-Jun-10 2:00
002comp23-Jun-10 2:00 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 3:28
David Skelly23-Jun-10 3:28 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 17:42
002comp23-Jun-10 17:42 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
David Skelly23-Jun-10 22:38
David Skelly23-Jun-10 22:38 
GeneralRe: Heap space option -xms and -xmx (More Detailed way) Pin
002comp23-Jun-10 22:50
002comp23-Jun-10 22:50 
Questionhow to validate date Pin
kirancgi22-Jun-10 8:17
kirancgi22-Jun-10 8:17 
AnswerRe: how to validate date Pin
Cedric Moonen22-Jun-10 20:29
Cedric Moonen22-Jun-10 20:29 
QuestionRemember password in website Pin
neer117-Jun-10 20:00
neer117-Jun-10 20:00 
AnswerRe: Remember password in website Pin
Richard MacCutchan17-Jun-10 22:01
mveRichard MacCutchan17-Jun-10 22:01 
QuestionEncrypt using java and Decrypt with C Pin
Murugan k16-Jun-10 19:43
Murugan k16-Jun-10 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.