Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. problem in loading a xml file

problem in loading a xml file

Scheduled Pinned Locked Moved Java
javacsharpasp-netcomdebugging
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Areff
    wrote on last edited by
    #1

    hi everybody i am a .net developer and i start to use java with spring. i want to load a xml file in File object at this way :

    File f = new File("D:/MyProjects/Sun Java/MyClinic/src/Clinic/Core/ApplicationContext.xml");

    and in netbeans debug mode when compiler wants to process this line encourge pause and next line not processed say something usefull about relative path in java. please forgive me for my bad english skill. thanks all.

    --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

    N 1 Reply Last reply
    0
    • A Areff

      hi everybody i am a .net developer and i start to use java with spring. i want to load a xml file in File object at this way :

      File f = new File("D:/MyProjects/Sun Java/MyClinic/src/Clinic/Core/ApplicationContext.xml");

      and in netbeans debug mode when compiler wants to process this line encourge pause and next line not processed say something usefull about relative path in java. please forgive me for my bad english skill. thanks all.

      --------------------- Areff Bahrami(KAVEH) Areff.HB@Gmail.com ---------------------

      N Offline
      N Offline
      Naruki 0
      wrote on last edited by
      #2

      Enclose that line in a try{}catch(){} block and see if there is an error being generated.

      Don't let my name fool you. That's my job.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups