Add path to Classpath (using Eclipse)

Hi guys,
I have a problem with a school project :
I wrote a class inside a package(TEST) in Eclipse that creates for each request (thread) a new temporary unambiguous folder with the following path (in Windows):
C:\DOCUME~1\USER\IMPOST~1\Temp\
then my class appends a folder : \TMPx\ , where "x" is a random number.
In the latest folder the class creates a .class file ("Test.class") (identical for all the different folder).
I have to execute the Test.class file , calling it from the package "test" in eclipse (I redefinied the default classloader ).
How do I execute this class from my test package?
(I think I have to add something to the classpath but I don't know what)...
Thanks.Andrew.

[http://java.sun.com/docs/books/tutorial/deployment/jar/|http://java.sun.com/docs/books/tutorial/deployment/jar/]

Similar Messages

  • Error using eclipse from oepe with weblogic 12.1

    I have written a very simple jsp and have tried to run it on the eclipse. I cannot start the server as it says jdk1.7_0_9 is unexpected. I have used the new server wizard, i believe, correctly and have tried to the path to java-home without spaces.
    Can anybody help?
    quick note:
    this is how my setDomainEnv looks like:
    @ECHO OFF
    @REM WARNING: This file is created by the Configuration Wizard.
    @REM Any changes to this script may be lost when adding extensions to this configuration.
    @REM *************************************************************************
    @REM This script is used to setup the needed environment to be able to start Weblogic Server in this domain.
    @REM
    @REM This script initializes the following variables before calling commEnv to set other variables:
    @REM
    @REM WL_HOME - The BEA home directory of your WebLogic installation.
    @REM JAVA_VM - The desired Java VM to use. You can set this environment variable before calling
    @REM this script to switch between Sun or BEA or just have the default be set.
    @REM JAVA_HOME - Location of the version of Java used to start WebLogic
    @REM Server. Depends directly on which JAVA_VM value is set by default or by the environment.
    @REM USER_MEM_ARGS - The variable to override the standard memory arguments
    @REM passed to java.
    @REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
    @REM DOMAIN_PRODUCTION_MODE
    @REM - The variable that determines whether the workshop related settings like the debugger,
    @REM testconsole or iterativedev should be enabled. ONLY settable using the
    @REM command-line parameter named production
    @REM NOTE: Specifying the production command-line param will force
    @REM the server to start in production mode.
    @REM
    @REM Other variables used in this script include:
    @REM SERVER_NAME - Name of the weblogic server.
    @REM JAVA_OPTIONS - Java command-line options for running the server. (These
    @REM will be tagged on to the end of the JAVA_VM and
    @REM MEM_ARGS)
    @REM
    @REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    @REM (http://download.oracle.com/docs/cd/E24329_01/web.1211/e21048/overview.htm).
    @REM *************************************************************************
    set WL_HOME=C:\Oracle\Middleware\wlserver_12.1
    for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
    set BEA_JAVA_HOME=C:\Progra~2\jdk1.7.0_09
    set SUN_JAVA_HOME=C:\Progra~2\jdk1.7.0_09
    if "%JAVA_VENDOR%"=="Oracle" (
         set JAVA_HOME=%BEA_JAVA_HOME%
    ) else (
         if "%JAVA_VENDOR%"=="Sun" (
              set JAVA_HOME=%SUN_JAVA_HOME%
         ) else (
              set JAVA_VENDOR=Sun
              set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_09
    @REM We need to reset the value of JAVA_HOME to get it shortened AND
    @REM we can not shorten it above because immediate variable expansion will blank it
    set JAVA_HOME=%JAVA_HOME%
    for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi
    set SAMPLES_HOME=%WL_HOME%\samples
    set DOMAIN_HOME=C:\Oracle\Middleware\wlserver_12.1\samples\domains\wl_server
    for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
    set LONG_DOMAIN_HOME=C:\Oracle\Middleware\wlserver_12.1\samples\domains\wl_server
    if "%DEBUG_PORT%"=="" (
         set DEBUG_PORT=8453
    if "%SERVER_NAME%"=="" (
         set SERVER_NAME=examplesServer
    set DERBY_FLAG=true
    set enableHotswapFlag=
    set PRODUCTION_MODE=
    set doExitFlag=false
    set verboseLoggingFlag=false
    for %%p in (%*) do call :SET_PARAM %%p
    GOTO :CMD_LINE_DONE
         :SET_PARAM
         for %%q in (%1) do set noQuotesParam=%%~q
         if /i "%noQuotesParam%" == "nodebug" (
              set debugFlag=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "production" (
              set DOMAIN_PRODUCTION_MODE=true
              GOTO :EOF
         if /i "%noQuotesParam%" == "notestconsole" (
              set testConsoleFlag=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "noiterativedev" (
              set iterativeDevFlag=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "noLogErrorsToConsole" (
              set logErrorsToConsoleFlag=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "noderby" (
              set DERBY_FLAG=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "doExit" (
              set doExitFlag=true
              GOTO :EOF
         if /i "%noQuotesParam%" == "noExit" (
              set doExitFlag=false
              GOTO :EOF
         if /i "%noQuotesParam%" == "verbose" (
              set verboseLoggingFlag=true
              GOTO :EOF
         if /i "%noQuotesParam%" == "enableHotswap" (
              set enableHotswapFlag=-javaagent:%WL_HOME%\server\lib\diagnostics-agent.jar
              GOTO :EOF
         ) else (
              set PROXY_SETTINGS=%PROXY_SETTINGS% %1
         GOTO :EOF
    :CMD_LINE_DONE
    set MEM_DEV_ARGS=
    if "%DOMAIN_PRODUCTION_MODE%"=="true" (
         set PRODUCTION_MODE=%DOMAIN_PRODUCTION_MODE%
    if "%PRODUCTION_MODE%"=="true" (
         set debugFlag=false
         set testConsoleFlag=false
         set iterativeDevFlag=false
         set logErrorsToConsoleFlag=false
    @REM If you want to override the default Patch Classpath, Library Path and Path for this domain,
    @REM Please uncomment the following lines and add a valid value for the environment variables
    @REM set PATCH_CLASSPATH=[myPatchClasspath] (windows)
    @REM set PATCH_LIBPATH=[myPatchLibpath] (windows)
    @REM set PATCH_PATH=[myPatchPath] (windows)
    @REM PATCH_CLASSPATH=[myPatchClasspath] (unix)
    @REM PATCH_LIBPATH=[myPatchLibpath] (unix)
    @REM PATCH_PATH=[myPatchPath] (unix)
    call "%WL_HOME%\common\bin\commEnv.cmd"
    set WLS_HOME=%WL_HOME%\server
    if "%JAVA_VENDOR%"=="Sun" (
         set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
         set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m
    ) else (
         set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
         set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
    set MEM_ARGS_64BIT=%WLS_MEM_ARGS_64BIT%
    set MEM_ARGS_32BIT=%WLS_MEM_ARGS_32BIT%
    if "%JAVA_USE_64BIT%"=="true" (
         set MEM_ARGS=%MEM_ARGS_64BIT%
    ) else (
         set MEM_ARGS=%MEM_ARGS_32BIT%
    set MEM_PERM_SIZE_64BIT=-XX:PermSize=128m
    set MEM_PERM_SIZE_32BIT=-XX:PermSize=128m
    if "%JAVA_USE_64BIT%"=="true" (
         set MEM_PERM_SIZE=%MEM_PERM_SIZE_64BIT%
    ) else (
         set MEM_PERM_SIZE=%MEM_PERM_SIZE_32BIT%
    set MEM_MAX_PERM_SIZE_64BIT=-XX:MaxPermSize=256m
    set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=256m
    if "%JAVA_USE_64BIT%"=="true" (
         set MEM_MAX_PERM_SIZE=%MEM_MAX_PERM_SIZE_64BIT%
    ) else (
         set MEM_MAX_PERM_SIZE=%MEM_MAX_PERM_SIZE_32BIT%
    if "%JAVA_VENDOR%"=="Sun" (
         if "%PRODUCTION_MODE%"=="" (
              set MEM_DEV_ARGS=-XX:CompileThreshold=8000 %MEM_PERM_SIZE%
    @REM Had to have a separate test here BECAUSE of immediate variable expansion on windows
    if "%JAVA_VENDOR%"=="Sun" (
         set MEM_ARGS=%MEM_ARGS% %MEM_DEV_ARGS% %MEM_MAX_PERM_SIZE%
    if "%JAVA_VENDOR%"=="HP" (
         set MEM_ARGS=%MEM_ARGS% %MEM_MAX_PERM_SIZE%
    if "%JAVA_VENDOR%"=="Apple" (
         set MEM_ARGS=%MEM_ARGS% %MEM_MAX_PERM_SIZE%
    @REM IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
    if NOT "%USER_MEM_ARGS%"=="" (
         set MEM_ARGS=%USER_MEM_ARGS%
    set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME%
    @REM To use Java Authorization Contract for Containers (JACC) in this domain,
    @REM please uncomment the following section. If there are multiple machines in
    @REM your domain, be sure to edit the setDomainEnv in the associated domain on
    @REM each machine.
    @REM
    @REM -Djava.security.manager
    @REM -Djava.security.policy=location of weblogic.policy
    @REM -Djavax.security.jacc.policy.provider=weblogic.security.jacc.simpleprovider.SimpleJACCPolicy
    @REM -Djavax.security.jacc.PolicyConfigurationFactory.provider=weblogic.security.jacc.simpleprovider.PolicyConfigurationFactoryImpl
    @REM -Dweblogic.security.jacc.RoleMapperFactory.provider=weblogic.security.jacc.simpleprovider.RoleMapperFactoryImpl
    set JAVA_PROPERTIES=%JAVA_PROPERTIES% %EXTRA_JAVA_PROPERTIES%
    set ARDIR=%WL_HOME%\server\lib
    pushd %LONG_DOMAIN_HOME%
    @REM Clustering support (edit for your cluster!)
    if "%ADMIN_URL%"=="" (
         @REM The then part of this block is telling us we are either starting an admin server OR we are non-clustered
         set CLUSTER_PROPERTIES=-Dweblogic.management.discover=true
    ) else (
         set CLUSTER_PROPERTIES=-Dweblogic.management.discover=false -Dweblogic.management.server=%ADMIN_URL%
    if NOT "%LOG4J_CONFIG_FILE%"=="" (
         set JAVA_PROPERTIES=%JAVA_PROPERTIES% -Dlog4j.configuration=file:%LOG4J_CONFIG_FILE%
    set JAVA_PROPERTIES=%JAVA_PROPERTIES% %CLUSTER_PROPERTIES%
    set PRE_CLASSPATH=C:\Oracle\Middleware\wlserver_12.1\samples\server\examples\build\serverclasses
    set JAVA_DEBUG=
    if "%debugFlag%"=="true" (
         set JAVA_DEBUG=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n -Djava.compiler=NONE
         set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole...
    ) else (
         set JAVA_OPTIONS=%JAVA_OPTIONS% %enableHotswapFlag% -da
    if NOT exist %JAVA_HOME%\lib (
         echo The JRE was not found in directory %JAVA_HOME%. ^(JAVA_HOME^)
         echo Please edit your environment and set the JAVA_HOME
         echo variable to point to the root directory of your Java installation.
         popd
         pause
         GOTO :EOF
    if "%DERBY_FLAG%"=="true" (
         set DATABASE_CLASSPATH=%DERBY_CLASSPATH%
    ) else (
         set DATABASE_CLASSPATH=%DERBY_CLIENT_CLASSPATH%
    if NOT "%DATABASE_CLASSPATH%"=="" (
         if NOT "%POST_CLASSPATH%"=="" (
              set POST_CLASSPATH=%POST_CLASSPATH%;%DATABASE_CLASSPATH%
         ) else (
              set POST_CLASSPATH=%DATABASE_CLASSPATH%
    if NOT "%ARDIR%"=="" (
         if NOT "%POST_CLASSPATH%"=="" (
              set POST_CLASSPATH=%POST_CLASSPATH%;%ARDIR%\xqrl.jar
         ) else (
              set POST_CLASSPATH=%ARDIR%\xqrl.jar
    @REM PROFILING SUPPORT
    set JAVA_PROFILE=
    set SERVER_CLASS=weblogic.Server
    set JAVA_PROPERTIES=%JAVA_PROPERTIES% %WLP_JAVA_PROPERTIES%
    set JAVA_OPTIONS=%JAVA_OPTIONS% %JAVA_PROPERTIES% -Dwlw.iterativeDev=%iterativeDevFlag% -Dwlw.testConsole=%testConsoleFlag% -Dwlw.logErrorsToConsole=%logErrorsToConsoleFlag%
    if "%PRODUCTION_MODE%"=="true" (
         set JAVA_OPTIONS= -Dweblogic.ProductionModeEnabled=true %JAVA_OPTIONS%
    @REM -- Setup properties so that we can save stdout and stderr to files
    if NOT "%WLS_STDOUT_LOG%"=="" (
         echo Logging WLS stdout to %WLS_STDOUT_LOG%
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stdout=%WLS_STDOUT_LOG%
    if NOT "%WLS_STDERR_LOG%"=="" (
         echo Logging WLS stderr to %WLS_STDERR_LOG%
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.Stderr=%WLS_STDERR_LOG%
    @REM ADD EXTENSIONS TO CLASSPATHS
    if NOT "%EXT_PRE_CLASSPATH%"=="" (
         if NOT "%PRE_CLASSPATH%"=="" (
              set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%PRE_CLASSPATH%
         ) else (
              set PRE_CLASSPATH=%EXT_PRE_CLASSPATH%
    if NOT "%EXT_POST_CLASSPATH%"=="" (
         if NOT "%POST_CLASSPATH%"=="" (
              set POST_CLASSPATH=%POST_CLASSPATH%;%EXT_POST_CLASSPATH%
         ) else (
              set POST_CLASSPATH=%EXT_POST_CLASSPATH%
    if NOT "%WEBLOGIC_EXTENSION_DIRS%"=="" (
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.ext.dirs=%WEBLOGIC_EXTENSION_DIRS%
    set JAVA_OPTIONS=%JAVA_OPTIONS%
    @REM SET THE CLASSPATH
    if NOT "%WLP_POST_CLASSPATH%"=="" (
         if NOT "%CLASSPATH%"=="" (
              set CLASSPATH=%WLP_POST_CLASSPATH%;%CLASSPATH%
         ) else (
              set CLASSPATH=%WLP_POST_CLASSPATH%
    if NOT "%POST_CLASSPATH%"=="" (
         if NOT "%CLASSPATH%"=="" (
              set CLASSPATH=%POST_CLASSPATH%;%CLASSPATH%
         ) else (
              set CLASSPATH=%POST_CLASSPATH%
    if NOT "%WEBLOGIC_CLASSPATH%"=="" (
         if NOT "%CLASSPATH%"=="" (
              set CLASSPATH=%WEBLOGIC_CLASSPATH%;%CLASSPATH%
         ) else (
              set CLASSPATH=%WEBLOGIC_CLASSPATH%
    if NOT "%PRE_CLASSPATH%"=="" (
         set CLASSPATH=%PRE_CLASSPATH%;%CLASSPATH%
    if NOT "%JAVA_VENDOR%"=="BEA" (
         set JAVA_VM=%JAVA_VM% %JAVA_DEBUG% %JAVA_PROFILE%
    ) else (
         set JAVA_VM=%JAVA_VM% %JAVA_DEBUG% %JAVA_PROFILE%
    and this is hom my startWebLogic looks like:
    @REM --- Start Functions ---
    GOTO :ENDFUNCTIONS
    :stopAll
         @REM We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
         if NOT "X%ALREADY_STOPPED%"=="X" (
              GOTO :EOF
         @REM STOP DERBY (only if we started it)
         if "%DERBY_FLAG%"=="true" (
              echo Stopping Derby server...
              call "%WL_HOME%\common\derby\bin\stopNetworkServer.cmd" >"%DOMAIN_HOME%\derbyShutdown.log" 2>&1
              echo Derby server stopped.
         set ALREADY_STOPPED=true
    GOTO :EOF
    :classCaching
         echo Class caching enabled...
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dlaunch.main.class=%SERVER_CLASS% -Dlaunch.class.path="%CLASSPATH%" -Dlaunch.complete=weblogic.store.internal.LockManagerImpl -cp %WL_HOME%\server\lib\pcl2.jar
         set SERVER_CLASS=com.oracle.classloader.launch.Launcher
    GOTO :EOF
    :ENDFUNCTIONS
    @REM --- End Functions ---
    @REM *************************************************************************
    @REM This script is used to start WebLogic Server for this domain.
    @REM
    @REM To create your own start script for your domain, you can initialize the
    @REM environment by calling @USERDOMAINHOME\setDomainEnv.
    @REM
    @REM setDomainEnv initializes or calls commEnv to initialize the following variables:
    @REM
    @REM BEA_HOME - The BEA home directory of your WebLogic installation.
    @REM JAVA_HOME - Location of the version of Java used to start WebLogic
    @REM Server.
    @REM JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
    @REM PATH - JDK and WebLogic directories are added to system path.
    @REM WEBLOGIC_CLASSPATH
    @REM - Classpath needed to start WebLogic Server.
    @REM PATCH_CLASSPATH - Classpath used for patches
    @REM PATCH_LIBPATH - Library path used for patches
    @REM PATCH_PATH - Path used for patches
    @REM WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
    @REM JAVA_VM - The java arg specifying the VM to run. (i.e.
    @REM - server, -hotspot, etc.)
    @REM USER_MEM_ARGS - The variable to override the standard memory arguments
    @REM passed to java.
    @REM PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
    @REM DERBY_HOME - Derby home directory.
    @REM DERBY_CLASSPATH
    @REM - Classpath needed to start Derby.
    @REM
    @REM Other variables used in this script include:
    @REM SERVER_NAME - Name of the weblogic server.
    @REM JAVA_OPTIONS - Java command-line options for running the server. (These
    @REM will be tagged on to the end of the JAVA_VM and
    @REM MEM_ARGS)
    @REM CLASS_CACHE - Enable class caching of system classpath.
    @REM
    @REM For additional information, refer to "Managing Server Startup and Shutdown for Oracle WebLogic Server"
    @REM (http://download.oracle.com/docs/cd/E24329_01/web.1211/e21048/overview.htm).
    @REM *************************************************************************
    @REM Call setDomainEnv here.
    set DOMAIN_HOME=C:\Oracle\Middleware\wlserver_12.1\samples\domains\wl_server
    for %%i in ("%DOMAIN_HOME%") do set DOMAIN_HOME=%%~fsi
    call "%DOMAIN_HOME%\bin\setDomainEnv.cmd" %*
    set SAVE_JAVA_OPTIONS=%JAVA_OPTIONS%
    set SAVE_CLASSPATH=%CLASSPATH%
    set USER_MEM_ARGS=-Xms32m -Xmx200m -XX:MaxPermSize=350m
    @REM Start Derby
    set DERBY_DEBUG_LEVEL=0
    if "%DERBY_FLAG%"=="true" (
         call "%WL_HOME%\common\derby\bin\startNetworkServer.cmd" >"%DOMAIN_HOME%\derby.log" 2>&1
    set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS%
    set SAVE_JAVA_OPTIONS=
    set CLASSPATH=%SAVE_CLASSPATH%
    set SAVE_CLASSPATH=
    if "%PRODUCTION_MODE%"=="true" (
         set WLS_DISPLAY_MODE=Production
    ) else (
         set WLS_DISPLAY_MODE=Development
    if NOT "%WLS_USER%"=="" (
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.username=%WLS_USER%
    if NOT "%WLS_PW%"=="" (
         set JAVA_OPTIONS=%JAVA_OPTIONS% -Dweblogic.management.password=%WLS_PW%
    if NOT "%MEDREC_WEBLOGIC_CLASSPATH%"=="" (
         if NOT "%CLASSPATH%"=="" (
              set CLASSPATH=%CLASSPATH%;%MEDREC_WEBLOGIC_CLASSPATH%
         ) else (
              set CLASSPATH=%MEDREC_WEBLOGIC_CLASSPATH%
    echo .
    echo .
    echo JAVA Memory arguments: %MEM_ARGS%
    echo .
    echo WLS Start Mode=%WLS_DISPLAY_MODE%
    echo .
    echo CLASSPATH=%CLASSPATH%
    echo .
    echo PATH=%PATH%
    echo .
    echo ***************************************************
    echo * To start WebLogic Server, use a username and *
    echo * password assigned to an admin-level user. For *
    echo * server administration, use the WebLogic Server *
    echo * console at http:\\hostname:port\console *
    echo ***************************************************
    @REM CLASS CACHING
    if "%CLASS_CACHE%"=="true" (
         CALL :classCaching
    @REM START WEBLOGIC
    echo starting weblogic with Java version:
    %JAVA_HOME%\bin\java %JAVA_VM% -version
    if "%WLS_REDIRECT_LOG%"=="" (
         echo Starting WLS with line:
         echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
         %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS%
    ) else (
         echo Redirecting output from WLS window to %WLS_REDIRECT_LOG%
         %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WL_HOME%\server\lib\weblogic.policy %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS% >"%WLS_REDIRECT_LOG%" 2>&1
    CALL :stopAll
    popd
    @REM Exit this script only if we have been told to exit.
    if "%doExitFlag%"=="true" (
         exit
    ENDLOCAL
    please help!

    How are you deploying - from an IDE, or weblogic.Deployer or the console...?
    With console....
    Have you opened an SR with Oracle?
    Not yet. How to do it?

  • Path in Classpath not found

    Hi, all!
    When I create a Web Dynpro-DC, I receive the following warnings:
    [Warning]: Path in Classpath for file _webdynpro_model_dynamicrfc.jar not found.
    and the same for all other Used DCs.
    When I then rebuild the project, none of the referenced packages can be found.
    Anybody got an idea?
    Regards,
    Thomas

    Hi Thomas,
    Are you building a local Web Dynpro DC with NWDS SP15? There's a bug in the SP15 installation: It "forgets" to copy all files starting with a dot (I have noticed that all .dcdef and .buildplugin are missing, I don't know if there are more dot-files). Because of this none of the local SAP standard DCs work. You can copy these files manually in a command prompt window. Makes sure you exit your NWDS before entering the command below while in the installation source folder that contains the "eclipse" folder.
    xcopy *.dcdef "C:\Program Files\SAP\JDT" /s
    Kind regards,
    Pascal

  • Problem Exporting .Jar Using Eclipse

    I have a small problem of exporting using Eclipse 3.2
    First , i could , debug , run as application with no problem.
    however after i compiled into jar , and i tried opening the jar file
    theres no responses. what could possibly be the problem ?
    my manifest file includes the main class of program and all external .jar files.
    below is my main class
    -automatic batch printing
    -able to select target folder for batch printing
    -able to select interval for printing
    -able to stop printing
    -includes log of activity of threads and printing services
    -free for all to use =D
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Desktop;
    import java.awt.Graphics;
    import javax.swing.JFileChooser;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.io.*;
    import java.util.*;
    import java.util.Timer;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.*;
    import javax.swing.filechooser.*;
    import javax.swing.filechooser.FileFilter;
    import javax.print.*;
    import java.lang.Object;
    import java.awt.JobAttributes.*;
    import javax.swing.text.*;
    import javax.swing.text.html.HTMLDocument;
    import javax.swing.text.rtf.*;
    import java.awt.Dimension;
    import javax.swing.JEditorPane;
    import java.awt.Rectangle;
    import javax.swing.JOptionPane;
    import javax.swing.JScrollPane;
    import javax.swing.JButton;
    import javax.swing.JTextPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.JCheckBox;
    import javax.swing.JLabel;
    import javax.swing.SwingUtilities;
    import java.awt.Font;
    public class Test extends JFrame implements Printable{
         private static final long serialVersionUID = 1L;
         private JPanel jContentPane = null;  //  @jve:decl-index=0:visual-constraint="36,9"
         private JButton Open = null;
          Date date;
           class MyFilter extends javax.swing.filechooser.FileFilter {
                 public boolean accept(File file) {
                     String filename = file.getName();
                             if(file.isDirectory()){
                          return true;
                     }else{
                          return filename.endsWith(".rtf");
                 public String getDescription() {
                     return "Rich Text Format ( .rtf ) ";
         public Test() {
              super();
              initialize();
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        Test application = new Test();
                        application.show();
                        application.setLocationRelativeTo(null);
                        application.setVisible(true);
                        application.getJContentPane().setVisible(true);
         private void initialize() {     
              this.setSize(408, 282);
              this.setResizable(false);
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.setContentPane(getJContentPane());
              this.setTitle("Auto Print Utility");
              this.setVisible(true);
          * This method initializes jContentPane
          * @return javax.swing.JPanel
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jLabel1 = new JLabel();
                   jLabel1.setBounds(new Rectangle(131, 102, 59, 16));
                   jLabel1.setFont(new Font("Apple Chancery", Font.PLAIN, 10));
                   jLabel1.setText("MilliSeconds");
                   jLabel = new JLabel();
                   jLabel.setBounds(new Rectangle(16, 103, 53, 16));
                   jLabel.setText("Interval :");
                   jContentPane = new JPanel();
                   jContentPane.setLayout(null);
                   jContentPane.add(getOpen(), null);
                   jContentPane.add(getStop(), null);
                   jContentPane.add(getJTextField(), null);
                   jContentPane.add(getJScrollPane(), null);
                   jContentPane.add(getJScrollPane1(), null);
                   jContentPane.add(getJTextField1(), null);
                   jContentPane.add(jLabel, null);
                   jContentPane.add(jLabel1, null);
                   jContentPane.add(getJButton(), null);
              return jContentPane;
         static void printPrinterJob() {               
                    PrinterJob printerjob = PrinterJob.getPrinterJob();
                    // set the characteristics of
                    // the job to be printed - use setPageable and book if
                    // outputing a document. Use setPrintable for "simple" printing - all pages formatted the same
                    printerjob.setPrintable(new Test());
                    try {
                      PrintService[] ser =PrinterJob.lookupPrintServices();
                         ReadRegistry rr = new ReadRegistry();
                     int x =ser.length;
                      //  String def = rr.getPrinter();
                     String def ="Microsoft Office Document Image Writer";
                     for(int y=0;y<x;y++){
                         if(ser[y].getName().equals(def)){
                             printerjob.setPrintService(ser[y]);
                             System.out.println(ser[y]+" SET");
                         }else
                     System.out.println(ser[y]);
                    } catch (PrinterException exception) {
                       System.err.println("Printing error: " + exception);
       public static void disableDoubleBuffering(Component c) {
                  RepaintManager currentManager = RepaintManager.currentManager(c);
                  currentManager.setDoubleBufferingEnabled(false);
      public static void enableDoubleBuffering(Component c) {
                  RepaintManager currentManager = RepaintManager.currentManager(c);
                  currentManager.setDoubleBufferingEnabled(true);
      public boolean printfolder(){
              Desktop de = Desktop.getDesktop();
              java.io.File folder = new File(jTextField.getText());
              File[] listOfFiles = folder.listFiles();
               for (int i = 0; i < listOfFiles.length; i++) {
                    if (listOfFiles.isFile()) {
                        try {
                                  de.print(listOfFiles[i].getAbsoluteFile());
                                  File fi = new File(jTextField.getText()+"\\Deleted");
                                  fi.mkdir();
                                  Thread.currentThread().sleep(1000);
                                  listOfFiles[i].renameTo(new File("Z:\\BTSS Log\\Fax\\Y2007 M10 D25\\Deleted",listOfFiles[i].getName().toString()));
                             } catch (Exception e1) {
                                  // TODO Auto-generated catch block
                                  e1.printStackTrace();
              System.out.println("File: " + listOfFiles[i].getName());
              date = new Date();
              PrintLog.append("Printed : "+listOfFiles[i].getName()+" "+date.toString()+"\n");
              } else if (listOfFiles[i].isDirectory()) {
                   date=new Date();
              System.out.println("Directory: " + listOfFiles[i].getName()+" "+date.toString());
              PrintLog.append("No Files Printed "+date.toString()+"\n");
              return true;
         private JButton Stop = null;
         Thread tt = new Thread(){
              public void run(){
                   while(true){
                   int count = 0; // @jve:decl-index=0:
                   printfolder();
                   try {
                        Long lon = new Long(jTextField1.getText());
                        System.out.println(lon);
              tt.sleep(lon);
              } catch (InterruptedException e) {}
              count++;
              if (count >= 10000) break;
         private JTextField jTextField = null;
         private JScrollPane jScrollPane = null;
         private JScrollPane jScrollPane1 = null;
         private JTextField jTextField1 = null;
         private JLabel jLabel = null;
         private JLabel jLabel1 = null;
         private JTextArea PrintLog = null;
         private JTextArea ThreadLog = null;
         private JButton jButton = null;
         public void run(){
                   while(true){
                   int count = 0;
                   printfolder();
                   try {
              // Thread.sleep (300000);//
                        Long lon = new Long(jTextField1.getText());
                        System.out.println(lon);
              Thread.currentThread().sleep(lon);
              } catch (InterruptedException e) {}
              count++;
              if (count >= 10000) break;
         private JButton getOpen() {
              if (Open == null) {
                   Open = new JButton();
                   Open.setBounds(new Rectangle(11, 38, 187, 29));
                   Open.setText("Start");
                   Open.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             try{
                                  if(jTextField1.getText().equals("")){
                                       JOptionPane.showMessageDialog(null,"MilliSeconds Required, Please Enter A Valid Number Into The TextBox", "MilliSeconds Required", JOptionPane.ERROR_MESSAGE);
                                  }else if(jTextField.getText().equals("")){
                                       JOptionPane.showMessageDialog(null,"Please Specify Directory To Be Print From By Clicking On The TextBox", "Directory Missing", JOptionPane.ERROR_MESSAGE);
                                  }else{
                                       Long.parseLong(jTextField1.getText());
                                       try {     
                                                 if(tt.isAlive()) {
                                                           tt.resume();
                                                           date=new Date();
                                                           ThreadLog.append("Activity Resumes "+date.toString()+"\n");
                                                 } else {
                                                                tt.start();                    
                                                                date=new Date();
                                                                ThreadLog.append("Activity Started "+date.toString()+"\n");
                                                      } catch (Exception f) {
                                                           JOptionPane.showMessageDialog(null, f.getMessage(), "Error Occured", JOptionPane.ERROR_MESSAGE);
                             }catch(Exception f){
                                  JOptionPane.showMessageDialog(null, f.getMessage(), "Long Format Exception", JOptionPane.ERROR_MESSAGE);
              return Open;
         * This method initializes Stop     
         * @return javax.swing.JButton     
         private JButton getStop() {
              if (Stop == null) {
                   Stop = new JButton();
                   Stop.setBounds(new Rectangle(197, 38, 195, 29));
                   Stop.setText("Stop");
                   Stop.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
              try{
         tt.suspend();
         date = new Date();
         ThreadLog.append("Activity Suspend "+date.toString()+" \n");
              }catch(Exception g){
                   JOptionPane.showMessageDialog(null, g.getMessage(), "Error Occured", JOptionPane.ERROR_MESSAGE);
              return Stop;
         public int print(Graphics arg0, PageFormat arg1, int arg2) throws PrinterException {
              // TODO Auto-generated method stub
              return 0;
         * This method initializes jTextField     
         * @return javax.swing.JTextField     
         */JFileChooser jfc = new JFileChooser();
         private JTextField getJTextField() {
              if (jTextField == null) {
                   jTextField = new JTextField();
                   ReadRegistry rr = new ReadRegistry();
                   String dpath = rr.getDirecotry();
                   File file = new File(dpath);
                   jfc.setCurrentDirectory(file);
                   jTextField.setText(dpath);
                   jTextField.setBounds(new Rectangle(11, 14, 383, 20));
                   jTextField.setEditable(false);
                   jTextField.addMouseListener(new java.awt.event.MouseAdapter() {
                        public void mouseClicked(java.awt.event.MouseEvent e) {
                             jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                             jfc.showOpenDialog(jContentPane);
                             File file = jfc.getSelectedFile();
                             String path = file.getAbsolutePath();
                             jTextField.setText(path);
              return jTextField;
         * This method initializes jScrollPane     
         * @return javax.swing.JScrollPane     
         private JScrollPane getJScrollPane() {
              if (jScrollPane == null) {
                   jScrollPane = new JScrollPane();
                   jScrollPane.setBounds(new Rectangle(197, 70, 193, 55));
                   jScrollPane.setViewportView(getThreadLog());
              return jScrollPane;
         * This method initializes jScrollPane1     
         * @return javax.swing.JScrollPane     
         private JScrollPane getJScrollPane1() {
              if (jScrollPane1 == null) {
                   jScrollPane1 = new JScrollPane();
                   jScrollPane1.setBounds(new Rectangle(14, 132, 375, 108));
                   jScrollPane1.setViewportView(getPrintLog());
              return jScrollPane1;
         * This method initializes jTextField1     
         * @return javax.swing.JTextField     
         private JTextField getJTextField1() {
              if (jTextField1 == null) {
                   jTextField1 = new JTextField();
                   jTextField1.setBounds(new Rectangle(70, 101, 62, 20));
              return jTextField1;
         * This method initializes PrintLog     
         * @return javax.swing.JTextArea     
         private JTextArea getPrintLog() {
              if (PrintLog == null) {
                   PrintLog = new JTextArea();
                   PrintLog.setEditable(false);
                   PrintLog.setFont(new Font("Arial", Font.PLAIN, 12));
              return PrintLog;
         * This method initializes ThreadLog     
         * @return javax.swing.JTextArea     
         private JTextArea getThreadLog() {
              if (ThreadLog == null) {
                   ThreadLog = new JTextArea();
                   ThreadLog.setEditable(false);
                   ThreadLog.setFont(new Font("Taffy", Font.PLAIN, 10));
              return ThreadLog;
         * This method initializes jButton     
         * @return javax.swing.JButton     
         private JButton getJButton() {
              if (jButton == null) {
                   jButton = new JButton();
                   jButton.setBounds(new Rectangle(12, 70, 185, 25));
                   jButton.setText("Reset");
                   jButton.addActionListener(new java.awt.event.ActionListener() {
                        public void actionPerformed(java.awt.event.ActionEvent e) {
                             Test nt = new Test();
                             nt.show();
                             hide();
              return jButton;
    } // @jve:decl-index=0:visual-constraint="-9,-14"
    i can compile into jar successfully but the jar file wouldn't respond.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

    first , it says unable to access jar file .
    upon deeper inspection i found that background processes is created behind thus the jar file been activated but the UI doesnt show up? any more idea of where my codes gone wrong? which seems perfect for me
    anyway thanks but i still .. it says unable to access jar file

  • Using eclipse to generate a class skeleton

    Hi,
    I'm using Eclipse to write some Java classes. I've already got the API for these classes, I just need to implement them.
    Is there some quick way to make Eclipse generate a skeleton of the classes? i.e. I just want to give the signatures of the methods as input, and get a skeleton in return.
    Thanks in advance.
    Edited by: n_creep on Dec 31, 2007 4:50 PM

    Yes, Go into the Window - Preferences menu and then work your way to the
    Java - Editor - Templates section. You can create some templates that can easily and quickly produce class skeletons. For instance, this is my Template named SwingMain for displaying with a JFrame a class that subclasses JPanel:
        private static void createAndShowUI()
            JFrame${cursor} frame = new JFrame("${primary_type_name}");
            frame.getContentPane().add(new ${primary_type_name}());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
        }

  • Create jar file using eclipse including the addition of a dll

    hy ..
         i have developed an application using eclipse.Having problems exporting the file as an executable jar.Even after providing the main class name in the manifest file, the jar file is giving the following error on a double click - "Could not find main class.Program will exit" .
         i have used an external jar file for displaying a tray icon on the system tray.This inturns uses a dll file which i have on my classpath.How do i get these into the jar and get it running..
    thanx in advance

    hy ..
    i have developed an application using eclipse.Having
    g problems exporting the file as an executable
    jar.Even after providing the main class name in the
    manifest file, the jar file is giving the following
    error on a double click - "Could not find main
    class.Program will exit" .Guessing, you don't specify the package part of the classname.
    i have used an external jar file for displaying a
    a tray icon on the system tray.This inturns uses a
    dll file which i have on my classpath.How do i get
    these into the jar and get it running..You can't run a dll from inside of a jar.
    If you're trying to use the JDIC tray classes, I don't believe they will run from a jar, but you might find otherwise. See https://jdic.dev.java.net/
    >
    thanx in advance

  • 3-1674105521 Multiple Paths error while using Bridge Table

    https://support.us.oracle.com/oip/faces/secure/srm/srview/SRViewStandalone.jspx?sr=3-1674105521
    Customer Smiths Medical International Limited
    Description: Multiple Paths error while using Bridge Table
    1. I have a urgent customer encounterd a design issue and customer was trying to add 3 logical joins between SDI_GPOUP_MEMBERSHIP and these 3 tables (FACT_HOSPITAL_FINANCE_DTLS, FACT_HOSPITAL_BEDS_UTILZN and FACT_HOSPITAL_ATRIBUTES)
    2. They found found out by adding these 3 joins, they ended with circular error.
    [nQSError: 15001] Could not load navigation space for subject area GXODS.
    [nQSError: 15009] Multiple paths exist to table DIM_SDI_CUSTOMER_DEMOGRAPHICS. Circular logical schemas are not supported.
    In response to this circular error, the developer was able to bypass the error using aliases, but this is not desired by client.
    3. They want to know how to avoid this error totally without using alias table and suggest a way to resolve the circular join(Multiple Path) error.
    Appreciated if someone can give some pointer or suggestion as the customer is in stiff deadline.
    Thanks
    Teik

    The strange thing compared to your output is that I get an error when I have table prefix in the query block:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE TMP1.A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "SYSADM"."TMP3" failed to load/unload and is being skipped due to error:
    ORA-38500: Unsupported operation: Oracle XML DB not present
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at Fri Dec 13 10:39:11 2013 elapsed 0 00:00:03
    And if I remove it, it works:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SYSADM"."TMP3"                             5.406 KB       1 out of 2 rows
    Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Fri Dec 13 10:36:50 2013 elapsed 0 00:00:01
    Nicolas.
    PS: as you can see, I'm on 11.2.0.4, I do not have 11.2.0.1 that you seem to use.

  • Path in Classpath for file SapMetamodelWebdynproContent.zip not found.

    How to get rid of these warnings?
                   [Warning]: Path in Classpath for file SapMetamodelWebdynproContent.zip not found.          
    Warning               [Warning]: Version for file SapMetamodelWebdynproContent.zip not found.          
    Warning               [Warning]: Versions of 'SapDictionaryTypeServices.jar' have different prefix.          
    Warning               [Warning]: Versions of 'SapDictionaryTypesRuntime.jar' have different prefix.     
    thanks in advance.

    Hi,
    This is a common problem when you import projects to NWDS. Do like this.
    1.Change to Navigator tab in NWDS and delete gen_wdp folder.
    2.Switch to Web Dynpro Explorer. Select the Project -> Right click-> Select properties -> in the wizard select Java Build Path -> Select Libraries tab -> You will find jar files with warnings
    3.Remove the jar and add the jar file with same name to the project one by one.
    4.For each jar file repeat step 3.
    5.Save the project
    Or
    removed the read-only property from all folders / files of the project and it solved my problem.
    Hope this helps!!
    Thanks & Regards
    Vijay K

  • Setting Path and Classpath in Linux environnement

    Hello,
    I use to develop with JAVA under Windows platform,
    now i am using j2sdk under Mandrake 8.0 , i dunno how to set my PATH end Classpath variables, could you show me how?
    Thanks

    Put this in your user's .bashrc file at the end of it.
    JAVA_HOME=/path/to/java/install
    PATH=$PATH:$JAVA_HOME/bin
    export JAVA_HOME PATHAnd buy a book on Unix/Linux.

  • Set path and classpath in ANT

    by using ANT, how can set the JDK path and classpath..
    jdk version exists in the : C:\Program Files\Java\jdk1.6.0
    This is the build.xml that i need to modify!
    -Do i need to have a serperate JAVA_HOME variable?
    <?xml version="1.0"?>
    <!--
    Build file for 'Chat Client'
    Version: $Revision: 4.10 $ $Date: 2003/05/28 $
    Author:  Rajat Gupta
    -->
    <project name="Chat" default="jar" basedir=".">
       <!-- ================================================================== -->
       <!-- Initialization of all property settings                            -->
       <!-- ================================================================== -->
       <target name="init">
          <property name="appname"        value="chat"   />
          <property name="src.dir"        value="src"               />
          <property name="lib.dir"        value="lib"              />
          <property name="build.dir"      value="Chat"            />
          <property name="build.compiler" value="classic"          />
       </target>
       <!-- ================================================================== -->
       <!-- Makes sure the needed directory structure is in place              -->
       <!-- ================================================================== -->
       <target name="prepare" depends="init">
          <mkdir dir="${lib.dir}" />
          <mkdir dir="${lib.dir}/META-INF" />
          <mkdir dir="${build.dir}" />
       </target>
       <!-- ================================================================== -->
       <!-- Compilation of the web part of the application                     -->
       <!-- ================================================================== -->
       <target name="classes" depends="prepare">
          <javac srcdir="${src.dir}/oracle/otnsamples/oc4jjms"
                 destdir="${lib.dir}"
                 includes="**" />
       </target>
       <!-- ================================================================== -->
       <!-- Compilation of the complete J2EE application (both web and EJB)    -->
       <!-- ================================================================== -->
       <target name="j2ee-meta-inf" depends="classes, prepare">
          <copy file="${src.dir}/META-INF/application-client.xml"
                tofile="${lib.dir}/META-INF/application-client.xml" />
          <copy file="${src.dir}/images/oralogo.gif"
                tofile="${lib.dir}/oralogo.gif" />
       </target>
       <target name="jar" depends="j2ee-meta-inf">
       <jar jarfile="${build.dir}/${appname}.jar"
           basedir="${lib.dir}" manifest="${src.dir}/META-INF/MANIFEST.MF"/>
          <delete dir="${lib.dir}" />
       </target>
    </project>Message was edited by:
    jugp

    [url ='http://www.jguru.com/forums/home.jsp?topic=Ant']answer here

  • Path and classpath

    How do i set path and classpath in java? why it is needed

    ramyabaskar wrote:
    How do i set path and classpath in java? why it is neededTypically you do not set these in java.
    You set the path in the operating system shell.
    You set path so you can launch java by just typing java
    instead of having to type the full path to "C:\Program Files\Java\jre6\bin\java.exe".
    You pass the desired classpath to java when you launch java with the classpath option or set it in the operating system shell using the CLASSPATH env.var.

  • Using Eclipse project definitions to build the Flex SDK

    It would be great if someone from Adobe could post on the recommended usage of the Eclipse project definitions in the development/eclipse/ subdirectory of the 3.0.x trunk distribution. I would like to debug some compiler modifications that I am working on.
    I saw Peter Farland demo this setup at 360Flex, but was unable to capture all the details of the Eclipse configuration that he discussed in his talk.
    thanks!

    If you go to the framework project’s properties, there is a section called Flex Library Compiler, you want to use a specific flex sdk (add a new sdk which points to the trunk, and use that) — you are probably building /against/ the wrong sdk, right code, wrong compiler.
    - Jono
    From: Ben Clinkinbeard <[email protected]>
    Reply-To: <[email protected]>
    Date: Thu, 3 Apr 2008 12:56:01 -0700
    To: <[email protected]>
    Subject: Re: Using Eclipse project definitions to build the Flex SDK
    A new message was posted by Ben Clinkinbeard in
    Developers --
      Using Eclipse project definitions to build the Flex SDK
    Sorry, I'm not following. My SDK project is from the trunk.
    Thanks,
    Ben
    On Thu, Apr 3, 2008 at 3:32 PM, Jono Spiro <[email protected]> wrote:
    A new message was posted by Jono Spiro in
    Developers --
      Using Eclipse project definitions to build the Flex SDK
    Try changing the sdk for the framework lib project to trunk (you'll need to add a new flex sdk, name it whatever you want) -- it's in the project properties. It's using the wrong compiler.
    - Jono
    From: Ben Clinkinbeard <[email protected]>
    Reply-To: <[email protected]>
    Date: Thu, 3 Apr 2008 05:13:43 -0700
    To: <[email protected]>
    Subject: Re: Using Eclipse project definitions to build the Flex SDK
    A new message was posted by Ben Clinkinbeard in
    Developers --
      Using Eclipse project definitions to build the Flex SDK
    I am running FB on top of Eclipse 3.3.2.
    <http://3.3.2.>  <
    <http://3.3.2.>
    http://3.3.2.>  I checked out the whole SDK trunk and can build the main ant task with no errors. I used the instructions mentioned above to create a Flex framework library project and thats where the error comes in. (I had tried to manually build a framework project a few times and it was a nightmare.) I would probably prefer to work on the 3.0.x branch/tag as I hope to submit a patch or two but saw Joe mention that the project defs only existed in the trunk.
    Searching Google for the oem error turns up lots of links about projects that had assets deleted and the build got confused but following the instructions on how to fix proved unsuccessful.
    Thanks,
    Ben
    On Thu, Apr 3, 2008 at 1:45 AM, Jono Spiro <[email protected]> wrote:
    A new message was posted by Jono Spiro in
    Developers --
      Using Eclipse project definitions to build the Flex SDK
    I always forget what that error means when it comes up -- though it's been ages since I've seen it last, literally.
    Joe: Since you mention Java 1.5, I'm guessing the errors are in the asdoc package? Those should be turned off (read: turned into a warning) -- Eclipse is a little too persnickety about that particular error. There's a preference for this in the Java section under warnings and errors. It's turned off in the trunk dev projects. Otherwise, you should be able to run the compiler directly with no problems (okay, one more caveat: there's a class loader issue with the OEM, fixed in trunk if you look for my Java 1.5 checkin).
    Ben: What is your setup? What are you building (Ryan mentions trunk, Joe mentions 30x), which Eclipse, which dev projects, did you build the sdk from the commandline first, etc.?
    Cheers,
    Jono
    View/reply at Using Eclipse project definitions to build the Flex SDK <
    <http://www.adobeforums.com/webx?13@@.59b4a9d4/3>
    http://www.adobeforums.com/webx?13@@.59b4a9d4/3>
    Replies by email are OK.
    Use the unsubscribe <
    <http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>
    http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>  form to cancel your email subscription.
    View/reply at Using Eclipse project definitions to build the Flex SDK <
    <http://www.adobeforums.com/webx?13@@.59b4a9d4/5>
    http://www.adobeforums.com/webx?13@@.59b4a9d4/5>
    Replies by email are OK.
    Use the unsubscribe <
    <http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>
    http://www.adobeforums.com/webx?280@@.59b4a9d4!folder=.3c060fa3
    <http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3> >  form to cancel your email subscription.
    View/reply at Using Eclipse project definitions to build the Flex SDK
    <http://www.adobeforums.com/webx?13@@.59b4a9d4/6>
    Replies by email are OK.
    Use the unsubscribe
    <http://www.adobeforums.com/webx?280@@.59b4a9d4%21folder=.3c060fa3>  form to cancel your email subscription.
    View/reply at Using Eclipse project definitions to build the Flex SDK
    <http://www.adobeforums.com/webx?13@@.59b4a9d4/7>
    Replies by email are OK.
    Use the unsubscribe
    <http://www.adobeforums.com/webx?280@@.59b4a9d4!folder=.3c060fa3>  form to cancel your email subscription.

  • Do I always need to add .JAR to ClassPath?

    My platform is Windows.
    I pack my .class files to a .Jar file. When I want to use this .Jar, I always have to add it to ClassPath. I think it doesn't make sense. Does anything I can do that can make me use .Jar more convenient ?
    Thanks

    Can you elaborate more?
    If you create an app and jar up all of the .class files in jar called myJar.jar for example, and then want to run that app, you just type in "java -jar myJar.jar" and its' not necessary to have myJar.jar in the classpath. (Remember to add a manifest with the Main-Class attribute defined! See java tutorial for more info on executable jars...)
    If, otoh, you have a bunch of classes in a jar, and then want to refer to those classes from some other external class(es)/jar(s), then yes, you'll need to add that jar to your classpath.
    -Ron

  • How to create an EJB Module using Eclipse

    Hi,
    How do I create a single EJB module and make a deployable EJB jar? I already have a existing source directory that contains the java files and the deployment descriptor. I am using Eclipse Ganymede 3.4 and Weblogic 9.2.
    Thanks.
    Edited by: user10387019 on Dec 9, 2008 1:39 PM

    Start out by creating an empty EJB project using the EJB Project wizard. Make sure to specify your WebLogic 9.2 installation as target runtime on the first page of the wizard. If your EJB source code is plain spec-compliant EJB, then your project is ready. If you are using WLS EjbGen technology, then you will also need to enable that feature on the project. You can do that at project creation by clicking the Modify button next to the Configuration combo on the first page of the wizard and then selecting WebLogic EJB Gen Support facet.
    Once the project is created, you are ready to import your source. You have several choices here. You can either copy your source into the src directory created for you or you can delete that source directory and link to a source directory elsewhere on the file system. To do the latter, right click on the project and select properties. Go to Java Build Path and select the Source tab. Remove the existing source directory. Then click on Link Source button and point to your existing source directory.
    That should be all that's necessary. Hope that helps.
    - Konstantin

  • Set system classpath using java program??

    Hi,
    I want to set the System classpath using java program. Can somebody please tell how to do this.
    Prashant

    but this will set the classpath for that particular JVM only.
    Isn't it??? I want that of SYSTEM so that user can access that class path from any JVM instance.
    Prashant

Maybe you are looking for

  • New field data not passed from BupaSearch to BupaCreate

    Hi, We have 2 new fields on BupaSearch. When we hit the create button to create a new BP, any data entered in the 2 new fields is not then passed through to the BupaCreate view. I've debugged in method 'CREATE_ACCOUNT' in BupaSearch, where it sets up

  • PO  with reference to Purchase requisition

    Hi Friends Good Morning, could you please help me out on one issue.My Client requirement is that Purchase order should be created only with reference to Purchase requisition.How can this be done please help ASAP. Regards VS

  • ICal Duplicate Events After Upgrading to Snow Leopard

    After upgrading to Snow Leopard, I noticed almost all my Events were duplicated. The Duplicates were collected from all calendars and are in one of the Calendars (Paul Events). Strangely a new Calendar (Paul Events 2) was created, but deleting this C

  • Limits on clip name lengths on log and import?

    Hi, I just arrived back from vacation where I had shot quite a number of AVCHD files on my Sony HDR-SR12E (all in the same quality and resolution), plugged in the camera to my Mac, launched FCE, started the Log and Import and proceeded to name each o

  • No pdf option under "Print"

    I recently had my PC computer wiped clean of viruses and had to reinstall the software. I reinstalled Photoshop Elements 2.0 but now cannot create a pdf file because the option doesn't come up under "Print," as it did before. Suggestions appreciated.