Results 1 to 4 of 4
- 07-26-2011, 03:12 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 9
- Rep Power
- 0
How to attach a text file in your NetBeans project?
hi,i have created an application in which an event must read a specific text file, create a new file and write to it or directly open a text(if possible word file).e.g.-i have created a text file "how to use". if i click menu in java application,this file should open.It works when i do it as a seperate java file.But fails when i jar java files and run.............
- 07-26-2011, 03:24 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Are you jarring the text file?
If so, are you using getResourceAsStream() to read the file?
Stuff in a jar file are no longer Files but are resources.
- 07-26-2011, 04:27 PM #3
Have you heard of JavaHelp?
db
- 07-29-2011, 09:20 AM #4
Member
- Join Date
- Jul 2011
- Posts
- 9
- Rep Power
- 0
Similar Threads
-
how to create a new project from a .jar file in NetBeans
By stringargs in forum NetBeansReplies: 1Last Post: 05-04-2011, 06:04 PM -
Populating a JList from a text file - Netbeans
By Ben1 in forum AWT / SwingReplies: 1Last Post: 01-13-2011, 03:30 PM -
Making a netbeans project into a executable jar file
By counterfox in forum New To JavaReplies: 3Last Post: 12-03-2010, 05:09 PM -
packing a netbeans project into a jar/exe file
By newToJava3 in forum New To JavaReplies: 1Last Post: 11-29-2010, 07:33 PM -
how can i attach a worg/image file
By sniffer139 in forum AWT / SwingReplies: 4Last Post: 03-12-2010, 06:49 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks