Search code examples
javaembedded-resourceddlnetbeans-platform

How to add or use .DDL file in netbeans platform app


I'm making App in Netbeans platform in Java Swing. I want to add and use .DDL file in my App's module.

How can I do that?


Solution

  • how to make .jar file which contain .DDL file?

    Add it to a Jar that is on the run-time class-path of the app. Here is a Netbeans tutorial for adding an image - the process is much the same for any non source file.

    Access the file by URL or InputStream. Here is an example of getting an URL.

    URL urlToResource = this.getClass().getResource("/path/to/the.ddl");