Results 1 to 2 of 2

Thread: Malformed error in java

  1. #1
    CarterBaker is offline Senior Member
    Join Date
    Dec 2009
    Posts
    210
    Rep Power
    3

    Default Malformed error in java

    I am developing one java application. In my application to retrieve and start file and Property to avoid having then again compile my java program. after that the path is recovered. Code String rlpth = request.getRealPath ("check.properties"); But I get malformed exception in java. I have been trying many solutions but none of them worked for me. If you guys can help me it would be great. Thanks for your replies

  2. #2
    HowardAdams is offline Senior Member
    Join Date
    Dec 2009
    Posts
    214
    Rep Power
    3

    Default

    The code that I have mentioned will definitely help you.:

    Code:
    Properties pr = new Properties();
    InputStream instrm = new FileInputStream(RealPath);
    try {
      	  pr file.load(instrm);
    } finally {
     	  instrm.close();
    }

Similar Threads

  1. Java error in windows 7
    By Williamsjones in forum Windows 7/2000/NT
    Replies: 3
    Last Post: 03-30-2010, 02:24 PM
  2. Null pointer error in java
    By CoxWatson in forum Programming
    Replies: 2
    Last Post: 03-19-2010, 01:49 PM
  3. Replies: 0
    Last Post: 09-29-2009, 05:39 PM
  4. Replies: 0
    Last Post: 07-09-2009, 12:45 PM
  5. Replies: 0
    Last Post: 06-11-2009, 01:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48