JAVA on the mainframe

Hello,
I am trying to get the following Java program complied on our Z/os mainframe;
public class Hello {                    
public static void main(String[] args) {
  System.out.println("Hello, World!");  
}          However when I compile I get the following compilation errors;
� javac Hello.java                         
Hello.java:5: illegal character: \168                
  public static void main(String[] args) {           
                            �                   
Hello.java:7: ')' expected                           
   �                                                 
Hello.java:5: cannot resolve symbol                  
symbol  : class String[                              
location: class Hello                                
  public static void main(String[] args) {           
                     �                          
Hello.java:5: missing method body, or declare abstract
  public static void main(String[] args) {           
                �                               
4 errors                                              Does anybody know what might be causing this problem?
I have a feeling it might be something to do with the mainframe using EBCDIC rather then ASCII, but that could just be me clutching at straws.
Thanks.

Where do you edit the java file? Directly on the mainframe using a terminal emulator? If yes, make sure the code page configured for the emulator matches the one on the mainframe. Or perhaps you edit it on a PC and you transfer it to the mainframe using FTP or IND$FILE transfer? In this case, make sure the code page configured for the file transfer is correct.

Similar Messages

  • Special character [ ] on the mainframe

    I'm trying java on the mainframe (03/390 with Unix System Services Enabled, Java 1.3.1). This is all new to me so bare with me.
    When I compile the HelloWorld.java code:
    class HelloWorld {                                         
    public static void main(String[]args) {         
    System.out.println("Hello World!") ;
    in my DOS window it works fine and I am able to run it.
    When I compile the same,exact code in my unix shell, I receive the following compile error:
    HelloWorld.java:3: illegal character: \168
    public static void main(String[]args) {     

    HelloWorld.java:5: ')' expected

    Is there a difference in the character sets between the systems or am I just missing something?

    Doesn't 0S/390 use some form of EBCDIC which is not ASCII compatible?
    If encodings are the problem, you can force "javac" to interprete the file using a particular character encoding with the "-encoding" switch. Example:
    javac -encoding US-ASCII HelloWorld.java

  • Run java application on mainframes

    i have a financial application which needs to run java application on mainframes. Any ideas how i may do it. where do i get the jvm for the various OS. !

    Thank you all for the reply. I have noted regarding jvm for OS390. Trouble is we have > 30 banks where this application has to be installed and run and these are very old systems like nsk and ve. so this would mean we need to have the jvm for all the different OS running. i would collect more info on the various OS before deciding if it can be done in java.

  • TN3270: No connection to the mainframe

    Hello,
    I got this porlet installed.
    When given no mainframe information he states that he needs connection information and the class is started, so everything ok.
    When I enter the hostname or the ip adress of the mainframe, the class rest initialized and in the java console I see the same tree actions returning :
    Inside Tn3270Main.processInputStream()
    Inside Tn3270TcpConnector.process()
    Inside Tn3270Main.readInputStream()
    Inside Tn3270TcpConnector.read()
    null
    This returns without stopping.
    What must I do to resolve this ?
    Thanks in advance.
    Filip Huysmans.

    can you set the debug level to a high value in the console and see if there is any stack trace info?
    -Harsha

  • IWay JAM (Java Adapter for Mainframe)

    iWay JAM (Java Adapter for Mainframe) is certified to work with Weblogic 10.2?
    http://egeneration.bea.com/iwaydocs/iway55/5.1/JAM/wls_versions.html

    Glen,
              no, jam gateway to the crm communication is in cleartext.
              -richard

  • Reverse Mapping Tutorial - Finder.java queries the wrong table?!

    I have been almost successful in running the Reverse Mapping Tutorial, by
    creating Java Classes from the hsqldb sample database, and running the JDO
    Enhancer on them.
    However, I cannot get he Finder.java to work. It seems to look in the wrong
    table: MAGAZINEX instead of MAGAZINE?
    Did anyone have trouble with this step, or ran it successfully?
    Liviu
    PS: here is the trace:
    0 [main] INFO kodo.Runtime - Starting Kodo JDO version 2.4.2
    (kodojdo-2.4.2-20030326-1841) with capabilities: [Enterprise Edition
    Features, Standard Edition Features, Lite Edition Features, Evaluation
    License, Query Extensions, Datacache Plug-in, Statement Batching, Global
    Transactions, Developer Tools, Custom Database Dictionaries, Enterprise
    Databases]
    70 [main] WARN kodo.Runtime - WARNING: Kodo JDO Evaluation expires in 25
    days. Please contact [email protected] for information on extending your
    evaluation period or purchasing a license.
    68398 [main] INFO kodo.MetaData -
    com.solarmetric.kodo.meta.JDOMetaDataParser@19eda2c: parsing source:
    file:/C:/Documents%20and%20Settings/default/jbproject/JDO/classes/reversetut
    orial.jdo
    74577 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] open:
    jdbc:hsqldb:hsql_sample_database (sa)
    75689 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] close:
    com.solarmetric.datasource.PoolConnection@17918f0[[requests=0;size=0;max=70;
    hits=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]
    75699 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] close
    connection
    77331 [main] INFO jdbc.JDBC - Using dictionary class
    "com.solarmetric.kodo.impl.jdbc.schema.dict.HSQLDictionary" to connect to
    "HSQL Database Engine" (version "1.7.0") with JDBC driver "HSQL Database
    Engine Driver" (version "1.7.0")
    1163173 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ] open:
    jdbc:hsqldb:hsql_sample_database (sa)
    1163293 [main] INFO jdbc.SQL - [ C:3093871; T:31737213; D:22310332 ]
    preparing statement <17940412>: SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM
    MAGAZINEX
    1163313 [main] INFO jdbc.SQL - [ C:3093871; T:31737213; D:22310332 ]
    executing statement <17940412>: [reused=1;params={}]
    1163443 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ]
    close:
    com.solarmetric.datasource.PoolConnection@2f356f[[requests=1;size=0;max=70;h
    its=0;created=1;redundant=0;overflow=0;new=1;leaked=0;unavailable=0]]
    1163443 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ] close
    connection
    Hit uncaught exception javax.jdo.JDOFatalDataStoreException
    javax.jdo.JDOFatalDataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    [PRE=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    Table not found: S0002 Table not found: MAGAZINEX in statement [SELECT
    DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX] [code=-22;state=S0002]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    [PRE=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    Table not found: S0002 Table not found: MAGAZINEX in statement [SELECT
    DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLException
    s.java:17)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(
    SubclassProviderImpl.java:283)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingField
    s(ClassMapping.java:1093)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
    reManager.java:704)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
    :93)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:595)
    at reversetutorial.Finder.main(Finder.java:32)
    NestedThrowablesStackTrace:
    java.sql.SQLException: Table not found: S0002 Table not found: MAGAZINEX in
    statement [SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
    at org.hsqldb.Trace.getError(Trace.java:226)
    at org.hsqldb.jdbcResultSet.<init>(jdbcResultSet.java:6595)
    at org.hsqldb.jdbcConnection.executeStandalone(jdbcConnection.java:2951)
    at org.hsqldb.jdbcConnection.execute(jdbcConnection.java:2540)
    at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1804)
    at org.hsqldb.jdbcStatement.executeQuery(jdbcStatement.java:199)
    at
    org.hsqldb.jdbcPreparedStatement.executeQuery(jdbcPreparedStatement.java:391
    at
    com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedSta
    tementWrapper.java:93)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryI
    nternal(SQLExecutionManagerImpl.java:771)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(
    SQLExecutionManagerImpl.java:691)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
    tionManagerImpl.java:372)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
    tionManagerImpl.java:356)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(
    SubclassProviderImpl.java:246)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingField
    s(ClassMapping.java:1093)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
    reManager.java:704)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
    :93)
    at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:595)
    at reversetutorial.Finder.main(Finder.java:32)

    The reason I did not run importtool is because ... I actually ran it, but it
    was not successfull. **!
    I now tried the solutions directory, from the kodo distribution, and that
    failed as well. Here is what I did:
    - I went to reversetutorial/solutions, and compiled all the classes, and
    then placed them into a reversetutorial folder (to match the package)
    - ran "rd-importtool reversetutorial.mapping" (the mapping file from the
    solutions directory), which failed as below:
    0 [main] INFO kodo.MetaData - Parsing metadata resource
    "file:/C:/kodo/reversetutorial/solutions/reversetutorial.mapping".
    Exception in thread "main"
    com.solarmetric.rd.kodo.meta.JDOMetaDataNotFoundException: No JDO metadata
    was found for type "class reversetutorial.Article".
    FailedObject:class reversetutorial.Article
    at
    com.solarmetric.rd.kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDa
    taRepositoryImpl.java:148)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMetaData(Mapping
    Repository.java:147)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingR
    epository.java:158)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.getMapping(ImportTo
    ol.java:126)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappings(Impo
    rtTool.java:57)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run(ImportTool.java
    :408)
    at
    com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main(ImportTool.jav
    a:385)
    Any idea why? The solutions directory should work, right? I even tried
    specifying a kodo.properties file, but it did not seem to help.
    Liviu
    "Abe White" <[email protected]> wrote in message
    news:[email protected]...
    Running the reversemappingtool creates classes, metadata files, and a
    .mapping file. That .mapping file contains all the O/R mapping
    information for how the generated classes map to your existing database
    tables. What the importtool does is just transfer that mapping
    information to the metadata files, in the form of <extension> elements.
    The reason this is a separate step will be clear once Kodo 3.0 comes out.
    So in sum, the importtool does not affect the database in any way. It
    just moves information from one format (.mapping file) to another
    (<extension> elements in the .jdo file).

  • How to use 2 webcam for java at the same time?

    hi there,
    I have a question to ask regarding webcam and java. Basically i want to know whether is it possible to have 2 web cam running in java at the same time? I have no problem when running one usb webcam since i m using "
    ml = new MediaLocator("vfw://0") ;
    what parameter must i use to specify when using 2 web cam
    many thanks
    sun

    Hi
    I am making a project in which i have to capture a image through webcam. How can I do it will you please guide me or if can provide me code. Many thanks for your support. My email id is [email protected]

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • Can I run both legacy Java and the latest version on my Macbook

    My CS4 Indesign now says I need the legacy Java version to run it. I upgraded to Yosemite and use CC 2014 Photoshop, but don't want to upgrade my Indesign as I don't use it much, but I do want it available. Can I run two versions of Java on the same machine?

    I'm pretty sure that that's not possible.
    CS4 is not guaranteed to work under Mavericks or Yosemite so you're on your own.

  • How do i size a photo to span across the mainframe?

    Hi,I am very new to dreamweaver and am still trying to adjust
    from using GoLive. I have started a page and have everthing exactly
    how I want it to look with the exception of the photograph that I
    have on the mainframe part of my page. I cannot get it to be 100%
    of the width of the mainframe. It looks like it is way too big in
    dreamweaver but when i preview it in my browser is looks completely
    different. I have tried to put the image in a table and make the
    table 100% but the image is still not cooperating. Any
    suggestions??

    Show us your page, please. Without seeing the code we cannot
    be sure about
    what you have done.
    WARNING - if you do not take the time to learn some HTML and
    CSS, DW will be
    a punishing experience for you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "nataliems12" <[email protected]> wrote in
    message
    news:gf4je1$gor$[email protected]..
    > Hi,I am very new to dreamweaver and am still trying to
    adjust from using
    > GoLive. I have started a page and have everthing exactly
    how I want it to
    > look
    > with the exception of the photograph that I have on the
    mainframe part of
    > my
    > page. I cannot get it to be 100% of the width of the
    mainframe. It looks
    > like
    > it is way too big in dreamweaver but when i preview it
    in my browser is
    > looks
    > completely different. I have tried to put the image in a
    table and make
    > the
    > table 100% but the image is still not cooperating. Any
    suggestions??
    >

  • I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to s

    I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to say.
    John Lupton

    I have recently started a solaris. I have a solaris using 64x and 86x systems and have java. The machine is very active and is very quick. I am happy so far with its performance and think its worthwhile to continue with my projects. That's all I have to say.
    John Lupton

  • Creating a GDG File in the Mainframe FTP

    Hi,
    I am working on Proxy to File Scinario, Where i need to create a File in the Mainframe FTP in the GDG File Format.
    The file name schema provided is <b>T903.PX5013.SIRCON.CREDS(+1)</b>
    I am able to genarate the file successfully in the another FTP but not in the mainframe FTP.
    Did any one created the File in the Mainframe FTP. Especially in the GDG File format.
    Thanks
    Amaresh

    Amaresh,
    Did you try the quotes..what was the error...
    You might also want to try...using the word literally..
    as in quote ..i have used that in the past quite successfully..
    Issue is with naming convention and ascii conversion....
    Regards
    Ravi Raman

  • JAVA as the Client/Web Service consume XML

    Working on a project at present and require to use JAVA as the client to consume XML from the Server to which i have coded in VB.NET. I have never used JAVA before and i am asking if anyone can point me in the right direction for this or give me an example of Client code in JAVA that consumes XML from the Server VB.net.
    This is cross platform web service that i am working on which must include the following Client/Server one in say for instance JAVA client and VB.NET server which must consume the same text for instance XML, and then display the XML.
    Thank You Beforehand
    I am a Beginner. But i am willing to learn. There will be a chocolate bar in it for anyone who can point me in the correct direction. Got 3 days to complete, HELP

    Any particular flavor of XML? (e.g., SOAP)

  • Its about CWMS 1.5 MR3 : Some of our clients have restriction on usage of java on the endpoint (desktop/Laptop)

    Hi Team,
    Some of our clients have restriction on usage of java on the endpoint (desktop/Laptop) !
    Would like to know if the dependency on Java is going to be removed in future releases ? Is it on the future roadmap ? to webex join meetings

    We're not allowed to discuss roadmap items on the public forums as this requires an NDA. You may wish to ask your Cisco AM or on the private Collaboration User Group.

  • Registration of Business system for the Integration Engine Java in the SLD issue

    Hi,
    We have completed the installation of PI-AEX 7.4 SR1 then we ran the below wizards successfully.
    - Configuration Wizard: PI-AEX initial setup
    - Configuration Wizard: PI Self Test for AEX
    However when we were Checking the AEX Configuration as per help.sap.com
    Check the registration of a business system for the Integration Engine Java in the SLD:
        Enter https://<host>:<port>/sld .
        Choose Start of the navigation path Business System Next navigation step Integration Engine Java <SID> Next navigation step Integration End of the navigation path.
        The pipeline URL must be: http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet?ximessage=true .
    More information: SAP Note 1435392
    for us the Pipeline URL is as below
    http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet
    and the rest " ?ximessage=true "  is not there.
    Also we ran the below wizard
    Configuration Wizard: PI Self Test for AEX
    and it finished successfully without any issue.
    Any Suggestions what could be missing.
    Thanks,
    Regard
    Ahmed Mohammed

    Hi,
    I found the below SAPNOTE which confirms that the Pipeline URL should be
    http://<host_fully_qualified>:<port>/XISOAPAdapter/MessageServlet
    1564449 - PI CTC Wrong Pipeline Url after AEX Initial Setup
    However on help.sap.com it is different.
    Any one experienced the same ?
    Regards
    Ahmed Mohammed

Maybe you are looking for

  • Characters in names and aliases

    In the website for Paetzold recorders there is an interesting bug. They have a setup which sweeps the text from a page onto a sheet Paetzold letterhead when you click on an Adobe icon. Unfortunately the letterhead uses a different text encoding and y

  • Custom Access Level issue in XI 3.1

    Hi, I am using BOXI 3.1 with fp 1.5, this configuration is migrated from XI3.0. Earlier we have access level such that user can modify the webi report in folders but they can't overwrite the report, they can save the report in their personal folder b

  • IDOC of message type EUPEXR

    hi all, When I run RFFOEDI to gereate IDOCS, IDOCS of message type EUPEXR and PAYEXT are generated. I need to pass a value in a field in the control record for the IDOC of message type EUPEXR but in FM : FI_EDI_EUPEXR_IDCREF01_OUT  ( which is uesd to

  • Interaction Between Blackboard Academic Suite & .DOC Files

    Hey all. My college uses the BlackBoard Academic Suite to post messages, homeworks, and other miscellaneous items. Usually, files posted are in the Windows Microsoft Office format of ".doc". However, when Safari downloads those files, it seemingly ad

  • Any one noticed issues when UCM contributor data files indexing in GSA

    Hi Guys, We are using Google search appliance to crawl UCM content (native documents). We don't have any issues with search results in this way. We are using dynamic converters to convert these documents into HTML in site studio web sites. But we hav