Compiling jdk 1.1.7 code to run in 1.4.2

I am new to Java & have inherited an old IBM Websphere 3.02 system which runs JDK 1.1.7. We need to move this to Websphere v5 or v6 which also involves a move to JDK 1.4.2.
From reading various forums it appears that java is not necessarily upwardly compatible. Given this I am looking for opinions on the following.
What is the likelihood of being able to compile the 1.1.7 code without any changes to run in 1.4.2?
Any help is much appreciated.

If I'm not mistaken, backward compatible would mean you could take 1.5 code,
compile it with a 1.1 compiler and run it on a 1.1 JVM, this definition Java is not
backward compatibleyes..i learned this when i compiled my program with 1.5. it turned out that how the byte code is stored has changed. i would get error message indicating this.
compile using 1.4 and run it with a JRE 1.5 will be ok.

Similar Messages

  • Compiling JDK 1.4.2 from source, under win32

    Hi,
    Here is how I compiled JDK 1.4.2 from source-code under win32. I hope this helps the many others who are interested in doing the same.
    1) Download the sources from here: http://wwws.sun.com/software/communitysource/j2se/java2/download.html
    Be sure to download all packages (SCSL source, SCSL binaries, mozilla binaries)
    2) Download gnu make from here: http://ftp.gnu.org/pub/gnu/make/
    3) Download Info-zip "zip" and "unzip" packages: http://www.info-zip.org/pub/infozip/UnZip.html and http://www.info-zip.org/pub/infozip/Zip.html
    4) Request and evaluation copy of MKS Toolkit: http://www.mkssoftware.com/eval/
    The key point here is that MKS Toolkit is a commercial product and even once you request an evaluation copy, it'll take a day or two for one of their salespeople to contact and harass you. Tell him whatever you must to get an evaluation copy out of him ("I might buy a copy in 3 months, honest!")... I personally wish Sun would move away from this commercial product and replace it with cygwin or something. It was very annoying getting past this stage.
    5) Download the DirectX 9.0 SDK from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=124552ff-8363-47fd-8f3b-36c226e04c85&displaylang=en
    Sun actually requires DirectX 7.0 SDK but I couldn't find a copy anywhere so we have no choice but use a newer copy. This is another issue Sun should really address.
    6) Install DirectX SDK, MKS Toolkit, Info-zip zip and unzip
    7) Unpack gnu make into a directory and build it using the special steps for the MKS Toolkit shell. If you're trying to build make 3.80 be sure to fix this bug before you proceed or else it won't build: https://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=1687
    8) Set your build environment variables. Here are my personal settings:
    call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
    set ALT_UNIXCOMMAND_PATH=c:\mksnt
    set ALT_MSVCRT_DLL_PATH=c:\windows\system32
    set ALT_BOOTDIR=c:\j2sdk1.4.2_04
    set ALT_DEVTOOLS_PATH=c:\j2sdk1.4.2_04\source\utils
    set path=C:\make-3.80\WinRel;%path%
    set include=%include%;c:\program files\microsoft sdk\include
    set JAVA_HOME=
    9) You must build against Visual C++ 6.0 (Visual C++ .NET won't work because its missing non-standard header files used by Sun, such as iostream.h)
    10) "cd <jdk source dir>\control\make"
    11) Edit <jdk source dir>\j2me\make\common\Sanity.gmk line 1135. Replace:
    ifeq ($(PLATFORM), windows)
    with
    ifeq ($(PLATFORM), windows_skip)
    This will cause the build process to ignore the fact that you have DirectX 9.0 when it requires version 7.0
    12) Start the build process: "make scsl"
    13) If the build process dies because you have a different service-pack of Visual C++ 6.0 than it expects, edit <jdk source dir>\j2me\make\common\Sanity.gmk lines 71-72 and modify the expected version numbers to the ones you have.
    14) If you see a "'c:\program' not found" error while compiling. Be sure that the paths set by VCVARS32.BAT use short-names not long-names, because make gets confused by paths with spaces.
    15) If you see an error "No rule to make target `/usr/src/j2sdk-1_4_2-src-scsl/control/build/linux-i586/lib/fonts/LucidaTypewriterRegular.ttf'" it means you forgot to extract the "SCSL binaries" package into the source-code directory
    I will post solutions to further compiler errors as I encounter them, I encourage you to do the same.

    hey
    i m trying to install JDK 1.5 from source under win XP
    dev-sanity pass so i suppose i have all installed correctly
    the problem is when i run the command "make scsl" to compile all
    i got an error which is into "link.exe" at the begin of the compilation :
    cd generated && NMAKE /NOLOGO /f C:\cygwin\Sources\hotspot\build\windows
    \makefiles\generated.make DIR=.\generated BUILD_FLAVOR=product
    link.exe kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib ad
    vapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib Wsock32.lib winmm.lib /n
    ologo /machine:I386 /opt:REF /opt:ICF,8 /map /debug /subsystem:console /out:adl
    c.exe main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.ob
    j forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj
    link: too many arguments
    Try `link --help' for more information.
    NMAKE : fatal error U1077: 'link.exe' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio\VC98\bin\n
    make.exe"' : return code '0x2'
    Stop.
    make[3]: *** [generic_build2] Error 2
    make[3]: Leaving directory `/Sources/hotspot/make'
    make[2]: *** [product] Error 2
    make[2]: Leaving directory `/Sources/hotspot/make'
    make[1]: *** [hotspot-build] Error 2
    make[1]: Leaving directory `/Sources/control/make'
    make: *** [scsl-build] Error 2
    i installed visual studio professional 6 sp3 as required ine the "build-windows-i586.html" file ! is the file link.exe incorrect in the pack 3??
    Thanks

  • JSP codes for running a JAVA program

    hello...
    does anyone know the JSP codes for running a Java program from my web page?? i mean i already have my java program compiled... and i just want this java program to run in the background when I click on a button or a link...
    Any idea about this?
    plz advice..
    avi

    yes... u r somewhat right... but this runs on Jakarta Tomcat...
    i'm using the Apache Http Server together with the ServletExec AS which enable the Apache server to run JSP..
    I've created a package where i've put my classes...
    WEB-INF/classes/tbd(package name)/my classes
    and i've added.. package name.. in my java program..
    and then in jsp... i've written..
    <%@ page import="tdb.*"%>
    <jsp:useBean id="exec" class="tdb.textdb" />
    <%exec.convert_data();%>
    but when i run the page it says the package does not exist...
    can anyone tell where to place the folder WEB-INF so that it can run fine?
    thx
    avi

  • Compile source string like java code

    I need to calculate some user defined formulas in my application. I have this formula in string form (e.g. "operand1 * operand2 + operand3" ). I have gained operand values throught the reflection and pars this string throught the StringTokenizer. So I have parsed string with operand values and operators. Is it possible to compile this string like java code ?
    Thanks for all hints

    Compile to what - a class file?
    Yes, it's possible if you don't mind using non-100% pure Java. You can compile them using the sun.tools.javac.Main class found from tools.jar in the lib directory of the jdk.
    But from what you say it would be easier to use an existing expression evaluator. Take a look at JEP (jep.sourceforge.net) and BeanShell (www.google.com) before you make any decision.

  • Putting a helloword.java code to run on Sun Java Web Server

    Hello,
    Given helloworld.jsp:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
                   throws ServletException, IOException {
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
         out.println("<HTML>");
         out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>");
         out.println("<BODY>");
         out.println("<H1>Hello World</H1>");
         out.println("Today is: " + (new java.util.Date().toString()) );
         out.println("</BODY></HTML>");
    } // doGet
    } // HelloWorld
    How can I put this code to run on Sun Java System Web Server, how to compile this ? what and how to put in the webserver document and how to access it ?
    Thanks for verbose and basic information about this, appreciated...

    What you wrote is not a JSP. It is a Java Servlet.
    You need to compile it. That creates HelloWorld.class.
    Create a directory say hello. You need to create a directory structure as mentioned below.
    hello|
    WEB-INF|
    web.xml
    classes|
    HelloWorld.class
    You need to package it in a war (web archive) file.
    %cd hello
    %jar cvf hello.war .
    Then deploy this war file using admin GUI or wadm CLI.
    I would suggest using Netbeans IDE to create the web application.
    To deploy the war file on SJS web server 7 update 2, see my blog at
    http://blogs.sun.com/kmeduri/entry/how_to_deploy_a_war

  • Which compiler genrerates the most efficient code?

    Does anybody know which compiler genrates the most efficient code? Jikes or javac? Or are there others more powerfull? If anybody has any information please submit a link to some benchmark test. I have tried both compilers, and I think that Jikes is compiling clearly faster, but does that mean that it is sloppy or doesn't it mean anything.

    It's not so much the comiler but rather the jvm that is responsible for speed issues.
    Of course if the compiler generates crappy bytecodes it doesn't help. But finally the jvm does the optimizing and running...

  • Is there a way to force a new session so my "on new session" code will run?

    I'm using apex.oracle.com and I find values of application (global) and page items persisting across logins.
    I didn't expect that? I thought they would go away when I logged out of APEX. But I can change the values, logout, and log back in to the same values. And when I login and start an application, it's not running my "shared components > application processes" initialization code which is set "on new session".
    I thought each login would be a distinct new session with it's distinct set of items. (see definition below)
    So when I run an application, is there a way to force a new session so my "on new session" code will run?
    >
    What Is a Session?
    A session is a logical construct that establishes persistence (or stateful behavior) across page views. Each session is assigned a unique identifier. The Application Express engine uses this identifier (or session ID) to store and retrieve an application's working set of data (or session state) before and after each page view.
    Because sessions are entirely independent of one another, any number of sessions can exist in the database at the same time. Also, because sessions persist in the database until purged by an administrator, a user can return to an old session and continue running an application long after first launching it. A user can also run multiple instances of an application simultaneously in different browser sessions.
    Sessions are logically and physically distinct from Oracle database sessions used to service page requests. A user runs an application in a single Oracle Application Express session from log in to log out with a typical duration measured in minutes or hours. Each page requested during that session results in the Application Express engine creating or reusing an Oracle database session to access database resources. Often these database sessions last just a fraction of a second.
    >
    Thanks -- Howard

    I cleaned up the copy of the Select List code in APEX 4.1.xxx which was not operating correctly before. Now it matches what I have in APEX 4.2.yyyy. And, drum roll please, the select list seemingly works fine there (4.1) as well. But now, the initialization code--which was working fine(!)--FAILS in 4.1!
    <font size="3"><font color="red">•<font face="courier new">
    Okay. Maybe this will help. 1) I logged in. Ran the login page but did not login. Opened the "session" window and wrote down the session ID. Logged out and back in. 2) Ran the login page but did not login. Opened the "session" window and .... it has the same session ID? 3) <b>So the session is persisting across logins!! How is that possible?</b>
    (More) When I log into 3 different applications, I get a different session ID for each but repeated logins always give the same session ID for any given session. </font>

  • Using XML-based object structures to represent data in code/at run-time

    Hello,
    I have quite a "high level" question which has be bothering me for some time, and I haven't found the subject tackled in any books. I believe J2SE/J2EE is not an important divide here.
    Lets say I want to develop a J2SE game application with two programs: a "level designer", and a "level viewer", and I want to store the level files in an XML format.
    My question, and I use this example only to try and illustrate it, is:
    when coding the level designer or viewer, is it reasonable to use an XML-based object hierarchy for representing a level in code/at run-time, i.e. using the standard Java DOM APIs? Or should one (as I would have done before XML came along) develop a set of classes much closer to modelling the real form of a level, and then add a means to convert those objects to/from to XML format?
    This second option of course I would use/would have used if I wasn't thinking about XML, but isn't it sometimes easier to just read in an XML file into a DOM representation and just use the data straight out of that structure, rather than go through the bother of parsing the XML into a set of unrelated objects defined by a different family of classes? What shapes your decision here? And if the second option is best, what is the easiest way of converting to/from the XML?
    Thank you for any advice.
    Greg

    Hi Christian,
    Can I ask: what about if your domain was quite 'close' to an object/DOM representation of XML?
    For instance, what if a game operated by acting out a theatrical script, a spoken conversation, between two characters, perhaps somehow influenced at points by the user, and a particular level was just a different script for the characters.
    One could imagine that the object representation of this would in the end be quite similar to how you'd represent XML, i.e. like a tree of nodes, where each node was a line from the script, and some nodes were a decision point where different nodes could be chosen from.
    Would you still want to avoid using XML-based classes to represent the underlying 'game', or is there a point where you would 'give it' to the similarity and use existing XML structures directly?
    Thank you for any advice
    Greg

  • ERROR [code=1] Running adjopy.class

    Hi DBA's
    When i am applying patch 5903765 i got the following error.
    i checked the write permission and owner permission, it seems everyting is fine and I run manually following script, i got the same error.
    adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @/s03/CLONE/clnappl/admin/CLN/out/apps.cmd
    Kindly help me to resolve the issue.
    =============ERROR=============================
    About to Write undo archive : Mon Mar 16 2009 14:22:33
    Writing undo archive /s03/CLONE/kiranpatches/5903765/backup/CLN/aqherptestdb/java
    ERROR: I/O or zip error while attempting to read entry meta-inf/jdev-ext.xml in zip file /s03/CLONE/clncomn/java
    Error(s) have occurred; exiting with status 1
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AutoPatch error:
    ERROR [code=1] Running adjopy.class
    AutoPatch error:
    Error updating master archive
    Best Regards,
    SG

    SG,
    Please review the following note:
    Note: 376096.1 - I/O or ZIP Error While Attempting To Read Entry meta-inf/jdev-ext.xml
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376096.1
    Regards,
    Hussein

  • I need a code to run a report from a forms on 10G...

    Hi!! I´m migrating from 6i to 10G and i cant run a report... can someone send me a sample code to run a report from a form in 10G??
    Thanks!!
    Regards!

    iam using Javabean in oracle 10g forms to tun the report....
    First create a block with a name control and add an bean to it with a name
    userid_bean.click the proerty of the bean and changes its width and height
    so that u cannot see it when u run the particular form.
    now use the below code where u are coding to run the report.
    Declare
    rep_url varchar2(2000);
    begin
    rep_url := '/reports/rwservlet?report=filepath\rep1.RDF' ||
    '&desformat=htmlcss&destype=cache&userid=sample/sample@oracle' || '&paramform=yes';
    -- Write Log messages to the Forms JInitiator console.The Next line must
    -- be disabled before running this code in any production environment.
    set_custom_property('control.userid_bean',1,'ADD_USERID',
    get_application_property(username)||'/'||
              get_application_property(password)||'@'||
              get_application_property(connect_string));
    -- writing the cookie
    set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
    web.show_document(rep_url,'_blank');
    end;

  • How to send data to labview code at run time while using with (or executing the sequence)the teststand

    Hello
    I am new to the Teststand.
    I am using labview8.0 with teststand 3.1
    I have developed some labview codemodules as vi's without using the teststand utility library pallete
    Now i have to run them in teststand.
    While executing them(as a sequence) in teststand,i need to enter the data to the labview code at run time.For this labview front panel should appear as GUI or popup (while executing).Is it possible to do this without using teststand pallete.
    or i need to change the code with teststand pallete(i think it is difficult now to change the code)
    Plz provide a solution to this problem
    Also one more,how and where to use the 'pass by reference' option
    Thanks and Regards
      Mudigondla

    Hi,
    see your other post http://forums.ni.com/ni/board/message?board.id=330&message.id=13914
    Also, you can, specify to display the front panel of your VI when you specify your VI in your sequence file.
    There are examples, for dialog panel using LabVIEW, in the examples folder of TestStand and on the NI Web Site.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • What are changes between FP 10.0.42.34 and 10.0.45.2 that could cause AS2 code to run differently?

    Hi, I am trying to debug a large Flash reading literacy application which is written in AS2. Everything works in 10.0.42.34. When our school customers upgrade to 10.0.45.2 they get blocked from proceeding with training.
    The main movie has loaded an application to run a sequence of tutorial movieclips, driven by an xml input.
    The application waits for each background plus movie to load and the plays the movie.
    It then unloads the movie and background and proceeds to the next movie/background.
    I am running the debugger in CS4 in both FP 10.42.34 and FP 10.0.45.2, the two [UnloadSWF] trace outputs happens in both, but the next step is missed. I am delving into the code right now, but I hope that there may be a hint in the changes made.
    I see no errors or security sandbox issues in the trace output.
    Can someone tell me what main changes there are in FP 10.0.45.2 that could cause AS2 code to run differently?
    Currently we are going to tell our customers that they must downgrade Flash Player to keep their kids learning to read.
    Thanks,
    Sue W.

    All these bug reports are probably describing same problem:
    http://bugs.adobe.com/jira/browse/FP-3993
    http://bugs.adobe.com/jira/browse/FP-4137
    http://bugs.adobe.com/jira/browse/FP-4121
    Not yet any word from Adobe that this is considered a bug worth fixing.
    I would also like to add that the bug failing to load or run older AS1/2 swfs is present in both latest release version FP 10.0.45.2 and FP 10.1.51.95 (beta 3). So it does not look like it has been fixed with 10.1

  • Code to run a query in SQL from Access with pass through query

    I have a query in SQL Server 2008:
     [Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
    already established the OBDC link and tested.

    Naomi,
    Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
    USE [Archive Master]
    Go
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
    When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:                         
    <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:              
    <Description,,>
    -- =============================================
    Create PROCEDURE [dbo].[NullTest2]
    AS

  • How to see for what company codes we run payroll for ?

    Hi gurus
    I have a question, generally our users run payrolls by payroll areas, but i want to see for what company codes we run payrolls, is there any report or table to see that ? i checked it in T001 using sm30, where i could see all the company codes (but this didn't answer my question) in this table there are some company codes for which we dont run payroll . so is there any way to see exactly for what company codes we run payrolls ? or should it be seen in financial side ??
    please advise
    regards
    sangitha

    Probably you can use Adhoc query to fetch company codes from IT0001 using a given Payroll area.
    Does this make sense?
    Regards
    Chandra

  • Transaction Code to run report(s)

    Hi
    Could you please let me know the transaction code (t code) to run SAP std and customized report?. Is it SE38 or some other t code?
    Thanks
    Raghu

    Hi Raghu,
    It is SE38, and also try using SA38.
    thanks
    Murtuza

Maybe you are looking for

  • Script for master child relation

    we need script for maste child relation if i insert or delete or update in master table it should reflect in child table after running procedure (not trigger). fetch the value from master table and insert into child table using cursor. for ex: if i i

  • Java script does not seem to be working with Firefox 3.6

    I am using Firefox 3.6, and recently installed MAC OS 10.6.5. I had a problem today working on a website and java script would not work with this browser. I was able to work on Safari though...

  • PDF Form Requires a newer version of Adobe Reader

    New at this...Created my form in Live Cycle 8.0/Professional 8. Throughout company we are using Acrobat Reader 7.0 and are not at this time looking to upgrade. When our users open this form, get "This PDF form requires a newer version of Adobe Reader

  • Control the scrolling speed while browsing a PDF file from a URL in Safari

    When I open a URL pointing to a PDF file from Safari, the PDF file is opened by the AdobePDFViewerNPAPI.plugin.  Too many times the multi-page PDFs scroll too fast up and down uncontrollably from the touch Pad.  Is there a way to control the scrollin

  • Java problem ODBC please help!!

    Hi everyone,I am getting an error when i try to compile my java code it says : SQL Problem: java SQLException: [Microsoft] [ODBC Driver Manager] function sequense error I need my code to print out questions and possible answers from my database of qu