Class to print classpath

Hi,
We're having problems setting up the classpath on our AS/400 and wanted to write a tiny class that outputs the classpath(s) on the machine it's run on.
Can anyone please provide a little line of code that solves our woes??
Cheers guys n gals,
Andy Carter

System.out.println(System.getProperty("java.class.path"));

Similar Messages

  • My Image CLASS MF4350d printer is not recognized by windows 8-64 bit

    My Image CLASS MF4350d printer is not recognized by windows 8-64 bit any help how can i fix the problem. I just bought new HP computer from Future shop and it came with Windows in it. but this windows8 doesnt have drivers for my printer Image Class MF 4350d. Now I hve no clue how can i fix this isue. Because I checked on Canon website for drivers and downloaded and run the drivers, but no solution for my printer at all.

    Yes. I have the latest version intalled but this hasnt helped.
    I thought it could be to do with the Shuffle not having enough of a battery charge.
    So i plugged it into the wall charger and then tried this didnt work either.
    It wont even play music for some reason. The only information I get in the earpiece when I turn it on is what the battery level is at.

  • Loading a class not on classpath

    how can we load a class not on classpath?

    uddinr0121 wrote:
    try this
    private void addArchive(File jarFile) throws IOException {
    URL u = jarFile.toURI().toURL();
    URLClassLoader sysloader = (URLClassLoader) ClassLoader.getSystemClassLoader();
    Class<?> sysclass = URLClassLoader.class;
    try {
    Method method = sysclass.getDeclaredMethod("addURL", parameters);
    method.setAccessible(true);
    method.invoke(sysloader, new Object[]{u});
    } catch (Throwable t) {
    t.printStackTrace();
    }this will add the jar file to the classpath after which you should be able to invoke using Class.forName()
    hope this helpsThat's a horrible solution, when you can just create a new URLClassLoader and use that to load the class.
    Adding it to the system classpath with reflection trickery is not really a clean solution to that.

  • JARs in WEB-INF/classes on the classpath? [NEWBIE]

    Hello,
    I am under the impression that any files (including JARs and all within
    them) are on the classpath if they are in the folder WEB-INF/classes.
    I have a WAR file that contains a JAR file that in the WEB-INF/classes
    folder. The JAR file contains a class under the package structure
    "mvc.users.Members". I know its there as I checked the WAR file structure
    before deploying.
    In the WAR file I have a Struts RegisterAction class in the package/folder
    "mvc.registration.RegisterAction" which has the following code to create a
    Member object:
    Member member = new Member();The Member class is imported into RegisterAction using
    import mvc.users.Members;and JBuilder appears to recognise Members as on the classpath and compiles
    with no errors.
    My problem is after I have deployed the WAR file, submitting a form to the
    RegisterAction gets the error below:
    javax.servlet.ServletException: Servlet execution threw an exception:
    root cause:
        java.lang.NoClassDefFoundError: mvc/users/Member
            mvc.registration.RegisterAction.execute(RegisterAction.java:22)
            org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
            javax.servlet.http.HttpServlet.service(HttpServlet.java:856)If the class "mvc.users.Member" is in the JAR file in the WEB-INF/classes
    folder and the "mvc.registration.RegisterAction" class in the WAR file
    does (according to JBuilder) see the "mvc.users.Member" class on the
    classpath and compiles... why then do I get this error?
    Thanks for your help.
    A Desperate Newbie,
    Mark

    I answered this in the JSP forum - you need to put JAR files in WEB-INF/lib.

  • Linux Issue  - Could not initialize class sun.print.CUPSPrinter

    Afternoon All,
    I am using the latest CR4Ev2.
    Java 1.6 (Am very sure but will double check)
    My Windows enviroment is all working perfectly and so have moved my application over to a Linux setup.
    After solving all my case-sensitivity issues I have managed to get my reports almost working. (I hope almost)
    When the following code is run:
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.open(reportFilePath,OpenReportOptions._openAsReadOnly);
    I get the below error messages in my logging.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class sun.print.CUPSPrinter---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:286)
         at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)
         at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(SourceFile:669)
    Now it could just be as simple as we dont have a printer setup on that box.
    Is this a definate requirement. Does the server have to have a printer setup, even if we are only exporting to PDF files.
    I am still doing some testing and since it is the first time getting this far on Linux it might be mistakes on my side,
    but thought I would ask the wide world and see what replies I get back.
    Cheers
    Darren
    Edited by: Darren Jackson on Mar 10, 2010 11:12 AM
    Sorry for the bump but wanted to change the subject to something more enticing

    After many many hours of reading and pulling my hair out I have found a solution to my problem,
    Whether it is a valid solution or a workaround or a cheat I am hoping someone can tell me.
    If I run my application with the switch
    java -jar -Djava.awt.headless=true MyApp.jar
    It works.
    Now I am still doing some investigation on what exactly this headless switch is doing. But it works so I am happy.
    If anyone can give me a technical and or a laymans explanation that would be great.
    All I have to do now is solve my Font issue
    Cheers
    Darren

  • Image Class 7470 printer won't power up

    My Image Class 7470mf printer will not power up.  Is there a power reset or is there a serice manual available (online preferred) where I can troubleshoot this problem?

    Hazinpa, HP printers go to sleep if the printer is not active for more than 30minutes and however if the wireless radio button is ON and your network is installed fine then when you give the print command the printer automatically comes out of sleep mode to print.

  • Including a class file into classpath at runtime.

    Hi all,
    I need to include a class file into classpath for at runtime. But the problem is tht this class file is produced by some other application n i nedd it to make the connection.(Actully i m trying to make SSL connection with other server whc requires the class file generated frm tht server must be in to classapth of the JVM.) How can i achieve this?
    I am trying to find out the ways to include the class file into classpath through Java pgm. But will it be done in case web application , if yes thn how?
    Thnx in advance
    ~Gaurav

    I would also like to add that we created another test class : Test.java in the same directory as the TestAccessClass.java and compiled this alone :
    javac -classpath ../../../../jars/ Test.java
    and it compiled fine without any errors !!
    This class also had the same single statement :
    String testVar = TestClass.getString(null);
    Sathya

  • HELP PLEASE urgent: Creating a package, and class that prints all...

    please help, 5 duke dollars up for the best answer, or first answer that solves my problem!
    Hello, I have created a package called molecule that contains classes named Water, Sugar, Carbon Dioxide, and SulfuricAcid, and a sub-package named molecule.atom. The atom sub-package contains classes named Carbon, Hydrogen, Oxygen, and Sulfur. Each class in the molecule package should re-define the toString() method to print the numbers and types of atoms that constitute the molecule. For example, molecule.Sugar.toString() should return the string:
    "Sugar: 6 Carbon, 12 Hydrogen, 6 Oxygen".
    So basically, I have created a folder in C:\molecule\ and a subfolder C:\molecule\atom\ . I have also created a class called ChemTest belonging to the default package. ChemTest.main() creates and prints instances of each molecule and atom, but does not contain any import statements. The problem is that the ChemTest.java file won't compile coming up with 16 errors!
    Can someone explain to me what I am doing wrong?
    here is one of the molecule classes, for example CarbonDioxide.java:
    package molecule;
    public class CarbonDioxide
         private String co2;
         public CarbonDioxide()
              co2 = "Carbon Dioxide: 1 Carbon, 2 Oxygen";
         public String toString()
              return co2;
    and here is one of the atom classes, for example Carbon.java:
    package molecule.atom;
    public class Carbon
         private String c;
         public Carbon()
              c = "Carbon: symbol = C, num = 6, weight = 12.011";
         public String toString()
              return c;
    now here is the ChemTest.java file that won't compile:
    public class ChemTest
         public static void main(String[]args)
              molecule.Water water = new molecule.Water();
              molecule.Sugar sugar = new molecule.Sugar();
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
              System.out.println(water.toString());
              System.out.println(sugar.toString());
              System.out.println(carbonDioxide.toString());
              System.out.println(sulfuricAcid.toString());
              System.out.println();
              System.out.println(carbon.toString());
              System.out.println(oxygen.toString());
              System.out.println(hydrogen.toString());
              System.out.println(sulfur.toString());
    and finally, here are the errors:
    C:\molecule\ChemTest.java:5: cannot resolve symbol
    symbol : class Water
    location: package molecule
              molecule.Water water = new molecule.Water();
    ^
    C:\molecule\ChemTest.java:5: cannot resolve symbol
    symbol : class Water
    location: package molecule
              molecule.Water water = new molecule.Water();
    ^
    C:\molecule\ChemTest.java:6: cannot resolve symbol
    symbol : class Sugar
    location: package molecule
              molecule.Sugar sugar = new molecule.Sugar();
    ^
    C:\molecule\ChemTest.java:6: cannot resolve symbol
    symbol : class Sugar
    location: package molecule
              molecule.Sugar sugar = new molecule.Sugar();
    ^
    C:\molecule\ChemTest.java:7: cannot resolve symbol
    symbol : class CarbonDioxide
    location: package molecule
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
    ^
    C:\molecule\ChemTest.java:7: cannot resolve symbol
    symbol : class CarbonDioxide
    location: package molecule
              molecule.CarbonDioxide carbonDioxide = new molecule.CarbonDioxide();
    ^
    C:\molecule\ChemTest.java:8: cannot resolve symbol
    symbol : class SulfuricAcid
    location: package molecule
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
    ^
    C:\molecule\ChemTest.java:8: cannot resolve symbol
    symbol : class SulfuricAcid
    location: package molecule
              molecule.SulfuricAcid sulfuricAcid = new molecule.SulfuricAcid();
    ^
    C:\molecule\ChemTest.java:10: cannot resolve symbol
    symbol : class Carbon
    location: package atom
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
    ^
    C:\molecule\ChemTest.java:10: cannot resolve symbol
    symbol : class Carbon
    location: package atom
              molecule.atom.Carbon carbon = new molecule.atom.Carbon();
    ^
    C:\molecule\ChemTest.java:11: cannot resolve symbol
    symbol : class Oxygen
    location: package atom
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
    ^
    C:\molecule\ChemTest.java:11: cannot resolve symbol
    symbol : class Oxygen
    location: package atom
              molecule.atom.Oxygen oxygen = new molecule.atom.Oxygen();
    ^
    C:\molecule\ChemTest.java:12: cannot resolve symbol
    symbol : class Hydrogen
    location: package atom
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
    ^
    C:\molecule\ChemTest.java:12: cannot resolve symbol
    symbol : class Hydrogen
    location: package atom
              molecule.atom.Hydrogen hydrogen = new molecule.atom.Hydrogen();
    ^
    C:\molecule\ChemTest.java:13: cannot resolve symbol
    symbol : class Sulfur
    location: package atom
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
    ^
    C:\molecule\ChemTest.java:13: cannot resolve symbol
    symbol : class Sulfur
    location: package atom
              molecule.atom.Sulfur sulfur = new molecule.atom.Sulfur();
    ^
    16 errors
    Please help!!!, thanks!

    HI,
    I tried your problem with the following directory structure:c:\java\ChemTest.java
    c:\java\molecule\CarbonDioxide.java
    c:\java\molecule\atom\Carbon.javaI set the dos-prompt to c:\java and ran the following commands:javac molecule\CarbonDioxide.java
    javac molecule\atom\Carbon.java
    javac -classpath . ChemTest.java- and it worked!
    Sure, in ChemTest.java I deleted all the lines refering to classes that you didn't post...
    I hope this helps you!
    Anja

  • How do I use multiple classes to print out different results

    I tried the below, but it only printed the print line from the class that contains the "main" method, but I want the second one (Demo2) to print to check some logic :
    class StaticDemo {
    int x;
    static int y;
    class Demo {
    public static void main(String args[]){
    StaticDemo.y = 30;
    System.out.println("StaticDemo.y = " + StaticDemo.y);
    class Demo2 {
    public static void main(String args[]){
    System.out.println("StaticDemo.y 2 = " + StaticDemo.y);
    }

    You can only have one main method. Try something like this:
    class StaticDemo
       int x;
       static int y;
    class Demo
       public static void main(String[] args) {
          StaticDemo.y = 30;
          System.out.println("StaticDemo.y = " + StaticDemo.y);
          Demo2 d2 = new Demo2();
          d2.display();
    class Demo2
       void display() {
          System.out.println("StaticDemo.y 2 = " + StaticDemo.y);

  • Java Concurrent Program not able to access class present under CLASSPATH

    We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.
    The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
    Here are the steps that we used to create the Oracle Concurrent Program:
    1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
    rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
    2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
    3. Then we create a concurrent program executable
    Path: Concurrent -> Program -> Executable.
    Executable: RAC Quoting SFDC Sync Executable
    Short Name: RacQotSFDCSyncEx
    Application: Quoting
    Description: RAC Quoting SFDC Synchronization batch program
    Execution Method: Java Concurrent Program
    Execution File Name : SFDCInterface
    Execution File Path : rac.oracle.apps.qot.quote.batch
    4. Create the Concurrent Program
    Path: Concurrent -> Program -> Define
    Program: RAC Quoting SFDC Sync CP
    Short Name: RACQOTSFDCSYNCCP
    Application: Quoting
    Description: RAC Quoting SFDC batch Synchronization Concurrent Program
    Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
    5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.

    Please post the details of the application release, database version and OS.
    We are creating a Java Concurrent Program which is using third party web service. The client classes for the webservice have been placed in a jar file. This jar file has been added to the SYSTEM CLASSPATH. When we try to run the concurrent program it fails with a ClassNotFoundException giving the name of the webervice client. The webservice clients are being used by other java classes from OAF as well. From there it is easily accessible.Please post the contents of the concurrent request log file here. You may also enable trace and submit the request again and post the contents of the log file.
    The request is being submit using a custom responsibility called RAC Quoting Admin. The user logged in has the corresponding responsibiility. The request is being submitted as a single request and there are no parameters being passed to the request.
    Here are the steps that we used to create the Oracle Concurrent Program:
    1. First of all we wrote a Java class that implements oracle.apps.fnd.cp.request.JavaConcurrentProgram
    rac.oracle.apps.qot.quote.batch.SFDCInterface implements JavaConcurrentProgram
    2. The concurrent program has a method called public void runProgram(CpContext pCpContext) which has the logic to be executed.
    3. Then we create a concurrent program executable
    Path: Concurrent -> Program -> Executable.
    Executable: RAC Quoting SFDC Sync Executable
    Short Name: RacQotSFDCSyncEx
    Application: Quoting
    Description: RAC Quoting SFDC Synchronization batch program
    Execution Method: Java Concurrent Program
    Execution File Name : SFDCInterface
    Execution File Path : rac.oracle.apps.qot.quote.batch
    4. Create the Concurrent Program
    Path: Concurrent -> Program -> Define
    Program: RAC Quoting SFDC Sync CP
    Short Name: RACQOTSFDCSYNCCP
    Application: Quoting
    Description: RAC Quoting SFDC batch Synchronization Concurrent Program
    Executable: Name - RacQotSFDCSyncEx; Method - Java Concurrent Program
    5. This concurrent program is registered with a custom responsibility from which we run this concurrent program.Have you completed all the steps as per MOS docs? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Program&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Loading a class from specified classpath

    Hello,
    I would like to create an instance of a class in a specific directory.
    So, I am doing this way :
    System.setProperty("java.class.path", classPath.getAbsolutePath());
    Class object = Class.forName(name);
    Object instance = object.newInstance();It works perfectly when running in my IDE (Eclipse).
    But when I am running my application through a JAR, I encountered the following error :
    ClassNotfoundException
    I don't understand why an exception is thrown whereas I defined correctly my classpath.
    Could you help me ?

    When running from an executable jar the normal class path is ignore in favour of thejar and any Class-Path specified in the jar's manifest.
    What you want is a URLClassLoader. Bascially:
    URLClassLoader cl = new URLClassLoader(new URL[]{classPath.toURL()});
    Class clazz = cl.loadClass(fullName);(Catch assorted exceptions)
    There should not be a class of the given name in the jar, or libraries it references (if there is, that will be loaded in preference).

  • Loading a class dynamically to classpath

    I have a class object for my .class file. It thougth it would be loaded to the classpath dynamcially by resolveClass(Class c), but still i am not able to add my class to the VM's classpath.
    Can anybody help,
    Thanks in advance
    Amir

    how do you get that Class object?
    If you use Class.forName(java.lang.String), the class loads itself, if found in classpath.
    If the class is dynamicaly generated, and you have the the file, or the bytes that form the class, you may invoke
    ClassLoader.defineClass(String name, byte[] b, int off, int len)
    I have no idea if my answer is anywhere near what you expect...

  • Using Reflection on classes outside the classpath

    Hi all,
    Im writing a tool that takes a directory containing class files (from other internal projects) and returns information such as the Class name, package, parent, constructors and public methods. These projects will not be on the classpath and will also use jars that are not on the classpath.
    I decided that ClassLoaders were the way to go. So I created a SimpleClassLoader class that takes a file, reads it in as an array of bytes and calls defineClass:
    public class SimpleClassLoader extends ClassLoader
         public SimpleClassLoader()
         public synchronized Class loadClass(String name, boolean resolveIt) throws ClassNotFoundException
              System.out.println("1) loading class:   " + name);
              return super.loadClass(name, resolveIt);
         public synchronized Class loadClass(File classFile) throws ClassNotFoundException
              System.out.println("2) Loading class: " + classFile.getName());
              try
                   byte[] data = getClassData(classFile);
                   return defineClass(name, data, 0, data.length);
              catch (IOException e)
                   throw new ClassNotFoundException();
         byte[] getClassData(File classFile) throws IOException
              byte result[];
              try
                   FileInputStream in = new FileInputStream(classFile);
                   result = new byte[in.available()];
                   in.read(result);
                   in.close();
                   return result;
              catch (IOException e)
                   throw new IOException();
    public class ClassParser
         public Class parse (File classFile)
              SimpleClassLoader loader = new SimpleClassLoader();
              Class reflectClass = null;
              try {
                   return loader.loadClass(classFile);
              } catch (ClassNotFoundException cnfe) {
                   System.out.println("Error loading class: " + classFile.getName() + "\n" + cnfe);
                   return null;
    }This worked for simple classes but when the superclass was in a jar or another file in the directory that hadnt already been loaded a ClassNotFoundException was thrown. So I then decided to try using URLClassLoader and loading in the jars and the entire source directory before calling findClass on it.
    class MyURLClassLoader extends URLClassLoader
         public MyURLClassLoader(URL[] urls)
              super(urls);
         public Class findClass(String classname) throws ClassNotFoundException
              return super.findClass(classname);
    public class ClassParser {
         private URL[] _classpath;
         private String _root;
         public ClassParser(File[] files, String root) {
              _root = root;
              _classpath = new URL[files.length];
              for (int i = 0; i < files.length; i++) {
                   try {
                        URL url = new URL("jar", "", files.toURL() + "!/");
                        this._classpath[i] = url;
                   } catch (MalformedURLException e) {
                        e.printStackTrace();
         public Class parse (File classFile)      {
              MyURLClassLoader urlLoader = new MyURLClassLoader(_classpath);
              Class reflectClass = null;
              String classname = "";
              // Try to load a Class instance from the file
              try {
                   classname = getClassName(classFile);
                   return urlLoader.findClass(classname);
              } catch (ClassNotFoundException cnfe) {
                   System.out.println("Error loading class: " + classname + "\n" + cnfe);
                   return null;
         String getClassName (File file) throws ClassNotFoundException {
              if (file.getAbsolutePath().startsWith(_root)) {
                   String packagePath = file.getAbsolutePath().substring(_root.length(), file.getAbsolutePath().lastIndexOf("."));
                   packagePath = packagePath.replace(File.separatorChar, '.');
                   return packagePath;
              } else {
                   throw new ClassNotFoundException();
         public static void main(String args[]) {
    File [] files = new File [] {
    new File("C:\\Projects\\app\lib\\jacob-1.6.jar"),
    new File("C:\\Projects\\app\\lib\\xalan.jar"),
    new File("C:\\Projects\\app\\lib\\xmlunit1.0.jar"),
    new File("C:\\Projects\\app\\classes\\com\\foo\\bar\\swing\\")
    parser = new ClassParser(files, "C:\\Projects\\app\\classes\\");
    This seems to work when I call findClass on a class thats in one of the jars but not on a class in the classes directory.
    Does anyone have any ideas what im doing wrong or whether im barking up the wrong tree completely??
    Thanks,
    Conor

    The URLs that you supply to an URLClassLoader each define the location of the default package for that portion of the classpath for the ClassLoader.
    This is the problem line
    new File("C:\\Projects\\app\\classes\\com\\foo\\bar\\swing\\")I suspect that it should be..
    new File( "C:\\Projects\\app\classes" )as this is the location of that default package.

  • WEB-INF/classes not in classpath issue - bug or specification?

    I've noticed BC4J expects some of its configuration files to be present in the standard classpath or the application.
    However, when running web-apps, the WEB-INF/classes are used for loading classes by the JVM, but they are not in the classpath literaly which causes BC4J not to find its metadata files - this has caused many people to be confused because they believed (like me) that the /classes folder is just another part of the classpath.
    But someone has to solve this! After all, if I have a million web-apps, I (as a BC4J user) do not want to include a million JAR files in the classpath. I want to put the JAR in the classes directory and have BC4J find it automatically since its part of the web-app's classes, jars/zips and such.
    The question is, is this a BC4J issue (not finding the files) or a Java Specification issue? and if this is a mere BC4J issue, why won't Oracle provide a small patch for BC4J (simply release an updated JAR/ZIP file)? Or instead, put it in BC4J release notes (unless its already there and I've missed it..) so that customers won't have to spend/waste valuable time trying to understand.
    Regards to all,
    Arik Kfir.

    Originally posted by Arik Kfir ([email protected]):
    I've noticed BC4J expects some of its configuration files to be present in the standard classpath or the application.
    However, when running web-apps, the WEB-INF/classes are used for loading classes by the JVM, but they are not in the classpath literaly which causes BC4J not to find its metadata files - this has caused many people to be confused because they believed (like me) that the /classes folder is just another part of the classpath.
    But someone has to solve this! After all, if I have a million web-apps, I (as a BC4J user) do not want to include a million JAR files in the classpath. I want to put the JAR in the classes directory and have BC4J find it automatically since its part of the web-app's classes, jars/zips and such.
    ===========================================
    If I understand you correctly, it sounds like you need to put the bc4j .jar files in the /j2ee/home/lib directory...by placing a jar file there, it becomes available to all web applications running inside OC4J...
    does that solve your problem?
    regards,
    Mike Conway
    UNC Chapel Hill

  • UML Class diagrams: Printing and formatting

    I really like the UML capabilities of NetBeans 5.5. In particular, I like the ability to create a "centered" dependency class diagram by right-clicking on a class and selecting "Generate Dependency Diagram."
    However, I am having trouble with some basic printing and formatting issues. I am hoping that I'm just being stupid, but I haven't been able to find documentation on how to fix this. I am using Red Hat Enterprise (3.4.6-3).
    I recently reverse engineered an 800 class project, and it didn't take too long. Less than a minute, probably.
    1. Can't get a landscape printout. Fiddle with Page Setup and Print menu items, set to landscape, but almost always get a portrait mode printout. Why?
    2. The arrowheads are frightfully small. How do you make them bigger?
    3. How can you globally set a preference to only show public attributes and operations for all classes?
    Thanks for the help.
    Dave Godbey

    Good to hear your feedback. Thanks.
    #1. there's a known bug on printing to landscape mode. However, the following workaround should print you a landscape diagram.
    - from the diagram window toolbar, click on the Print Preview button
    - from the Print Preview dialog, click on Print Setup
    - from the Print Setup dialog, click on Page Setup at the bottom left
    - from the Page Setup dialog, toggle the Landscape orientation radio button
    - press the OK button on the Page Setup and Print Setup dialogs: Your print preview should now be displayed in landscape orientation
    - now click on the Print button from the Print Preview dialog to print
    #2. I believe your diagram must be big so that the arrowheads are displayed small. Currently I don't see a way to make them bigger. Sorry for the inconvenience. I can file an enhancement on this for you or you can file one for yourself too thru the following URL.
    http://uml.netbeans.org/issues/enter_bug.cgi?component=uml
    #3. As for global preference to show only specific attributes or operations, there's an enhancement bug already, but the current version of the tool doesn't have this preference setting.

Maybe you are looking for

  • Font smoothing issue between built-in display and external

    Ok, this one is a bit tricky to explain, but here we go. I have a Macbook 2.2 C2D and a 24" FHD2400 Gateway LCD which I connect using the mini-DVI port. My problem is that any applications I start with the external display plugged in have slightly "t

  • Can't install Itunes on Windows Vista!

    I get this error when i try to install it. tried uninstalling quicktime and reboot, but no go! http://web.uvic.ca/~gleung86/misc/itune.jpg

  • Why do some of my contacts profile pictures appear as a blue square after syncing with facebook?

    Hi, After syncing facebook friends with contacts, some of the profile pictures in contacts are replaced with a blue square. Any ideas?

  • M3u playlists in to iTunes. ...is it possible?

    Is there a way to convert m3u playlists to iTunes playlists? I DJ with a program called Traktor. One feature I use is it's ability to export a "history" file as an iTunes playlist. This means I can keep a log in iTunes of what I've played on specific

  • Hi Reg  SAP GUIXT

    Hi All,     In Guixt I want to Add a TextBox. In that, my requirement is to fill the textbox with date  and  save it.    I want to know whether the date will be saved into the database table or not.    I want to update that date into database table f