Developing Xlets using Java 1.5

Hi Folks,
Does anybody knows that is it possible to develop Xlets using Java 1.5. I tried to write some using NetBeans 5.0, and jdk 1.4. ?
Cheers,

With the current download from reference implementation from
http://java.sun.com/products/javatv/
I found I had to make a few changes to get anything to work well. First, I found that there is some kind of XML parsing error (not due to a file being bad but something else):
java -cp samples\runxlet;javatv.jar RunXlet SvcDispXlet
and it brings up a window but nothing is rendered. The output I see is
Running Xlet named: SvcDispXlet
ServiceFile: com.sun.tv.receiver.ReceiverFile
JMFProperties: readProperties
Running Data from Class = com.sun.tv.receiver.ReceiverFile
Parsing failed: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequence
Exception: Invalid byte 1 of 1-byte UTF-8 sequence., file: lib\JavaTVSampleFile01.xml
XletContainer constructor
ROOTFRAME: OTHER 0:com.sun.tv.XletContainer[,0,0,0x0,invalid,hidden]
so I had to change
lib\JavaTV.properties
ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
# ServiceFileHandler=SampleData_01
to
# ServiceFileHandler=com.sun.tv.receiver.ReceiverFile
ServiceFileHandler=SampleData_01
If you want a ServiceContext, try downloading the source and changing
share\javatv\classes\com\sun\tv\receiver\SIEmulator.java
private static ServiceContext svcctx = null;
putResidentXlet(...)
if(svcctx == null){
try { svcctx = new com.sun.tv.ServiceContextImpl(); }catch (Exception e){ e.printStackTrace(); }
AppSignalEvent ase = new AppSignalEvent(dispManager.getRootFrame(),
AppSignalEvent.AUTOSTART, null, xletPath, xletName, svcctx, args);^M
but this still will not give you events. Some Xlet's (like the BdjGunBunny Xlet) wait for suchs events before starting.
C:\Java_ME_platform_SDK_3.0_EA\apps\BdjGunBunny\src\com\hdcookbook\gunbunny\BaseXlet.java
See code in
void waitForPresenting()
* Get a system callback via ServiceContextListener
public void receiveServiceContextEvent(ServiceContextEvent e) {
if (e instanceof NormalContentEvent) {
synchronized(this) {
isPresenting = true;
this.notifyAll();
}

Similar Messages

  • Developing webservices using Java SE6 and Tomcat Webserver

    Hi All,
    I am trying to develop a webservice using Java SE6 Beeta SDK with Tomcat webserver. I read somewhere in the Sun site and it says JAXWS2.0 is fully packaged with JAVA SE 6 SDK? If this is correct then what are all the remining packages(jar files present in JWSDP2.0) required to develop and publish the webservice.
    I does the setup as follows.
    - Install the Java SE6 SDK Beeta available.
    - Install Tomcat 5.17 webserver.
    - Started the webserver by setting java_home as SDK6.
    I am not able to publish the webservice with this setup
    Do i need to place any other package present in JWSDP2.0 in Tomcat_home/common/lib ?
    I used the same example present in JWSDP2.0 package.
    Please guide me regarding this?
    Thanks In Advance,
    Mohan

    Any ideas on how this could be achieved.Have you looked at the Unofficial Web Start FAQ at the Lopica site?
    - Gerald
    PS: You might wonna also consider posting your question to the Java Web Start developers group at Yahoo! See http://groups.yahoo.com/group/webstart

  • 1:n Transformation using JAVA Mapping Scenario

    Hi Frnds,
    I done a scenario using 1:n Transformation Scenario using XSLT,Graphical Mapping.
    But i want to develop scenario Using JAVA Mapping.
    Can anybody done the same scenario using JAVA Mapping share the links..
    Regards,
    Raj Sekhar

    You can use SAX parser for this
    firstly create a StringBuffer sb object which will store our target output
    when startDocument() gets called append the xml declaration in this method
    sb.append("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
    sb.append("<Root>");
    next for the Test element you have your startElement() method called which will contain the name of your source tag i.e Test
    for this , you will need to set a variable boolean isTest to true which was initialised as a false value.
    in the characters method you will get the value present in this tag.
    test the variable isTest for true value.
    if it is true then append the following
    sb.append("<Test1>"name"</Test1>"); //name is the buffer passed in characters method
    sb.append("<Test2>"name"</Test2>");
    sb.append("<Test3>"name"</Test3>");
    at the end your endelement() will be called
    here reset the value of isTest to false.
    in your endDocument()
    sb.append("</Root>");
    lastly convert to byte[] and then to outputStream format
    Edited by: Progirl Progirl on Jul 4, 2008 2:00 PM

  • Voice-enabled web using java

    I'm not so familiar with java language. But my final year project have to develop by using java. I do not know how to develop a voice enable application. My system is to enable blind user to online and check their exam result. The user just need to enter their user id and then the system will read out the result.
    May i know what should i do for the first step?

    non trivial I think is the phrase that comes to mind - good luck!
    a simple solution might be to record all possible exam results as audio in a db and just index and send back based on the exam result
    if you really want to be quite sophisticated there are various hosted VoiceXML services you can use to send VXML to and for the audio to be returned
    start googling!
    Paul.

  • Using Java 5, how to develop customizable web-pages  like iGoogle ?

    Is it possible to develop customizable web-pages like iGoogle does, using Java 5 ( simply using JSPs, servlets, JSFs, AJAX etc. and without using portals) ?
    A simple example explaining how to provide 3-4 header graphics options ( like igoogle does) will be helpful. (iGoogle seems to create a cookie, which appears to be used to render the selected header-graphics).
    TIA
    Edited by: DevelopingJava2005 on Jul 7, 2008 9:36 AM

    Without using portals?
    Google uses RSS feeds to compile their mashups on iGoogle. The positioning of those boxes are managed with AJAX and upon placement are saved into a session so they stay there for each visit after.
    Please be a little more clear as to what you are looking for. Yes, it is possible to develop web pages using the technologies you specified to simulate something like iGoogle, so give us some more details on what exactly you're looking for.
    Code wouldn't hurt either.

  • Can I use Java Card Development Kit 2.2.1 on Windows XP?

    Can I use Java Card Development Kit 2.2.1 on Windows XP?
    If no, which kit supports XP?

    It is not as strait forward as per say.
    I would like to share some tips that I have learnt duirng my recent experience with Java Card Development Kit 2.1.2 ( It presumed that JAVA SDK and JCDK is properly installed:
    Additonal installation
    - you need to download Java Communicatons API version 2.o for Windows at http://java.sun.com/products/javacomm/downloads/index.html
    - unzip the downloaded file javacom20-win20.zip
    - copy comm.jar and javax.com.properties to %JAVA_HOME%\lib
    - copy win32com.dll to %JAVA_HOME%\bin
    Configuration of Environment
    - Activate System under Control Panel
    - Click Environment Variable button under Advance Tab.
    - Check that JAVA_HOME and JC21_HOME are there under User Variables for user123
    - Create a new enviroment by clicking New button under User Variables and Enter "CLASSPATH" for Variable Name and ".;c:\j2sdk1.4.1_04\lib\comm.jar for Variable Value ( the ".;" is important for the entry and varies according to your JAVA_HOME)
    Modifying %JC21_HOME%\samples\build_samples.bat
    - Next you need to modify the compiler option in build_samples.bat
    - Use editor to look for the portion "Compile Sample" and add "- target 1.1" to every statements here. A sample is listed below:
    %JAVA_HOME%\bin\javac -target 1.1 %JCFLAGS% src\com\sun\javacard\samples\HelloWorld\*.java
    You may proceed to test the demo codes as instrucrted in the User Guide.
    I hope the above will help those who are keen to have a head start in Java Card Developemnet.

  • Using Java to Develop Expert System

    Can anyone help me to find some information about how to use JAVA to develop an expert system

    You can build expert systems with JAVA - that is not a problem. For starting, a good place will be Philip LaPlant's book. It does give good insight into expert systems.
    With Java, the systems might get a bit slow though, the processing in these systems are usually very high.
    Ironluca

  • Who can introduce the development contents of  the project using java  ?

    Hi ,  Web Dynpro experts:
        Could u introduce the working  contents of  the project using java  ?
        1. Do you develop function that would run in a sap standard system(such as CRM ,internet sales)?  OR  develop a  completely independent web application base on client's demand(EJB,JSP,HTML)?
      2.Do all the user interfaces run in web browser ?
        In a word ,I  just want to know  what picture is it as you are using java to work on SAP ,Because I must study AP&JAVA duo to the coming project.  Could you explain  it for me about SAP&JAVA in any perspective according to your project experience .
       BTW: I have 2 years experience on J2EE and 1 year on ABAP. So how i should get started ?

    Hi Guixin,
    The most common structure for building a WebDynPro application is to expose functionality from underlying systems and present it using the WebDynPro UI.  Often the underlying system is a SAP ERP/CRM type system, but can also be any WebService compliant system, or a combination of both. 
    Using the Netweaver System Landscape Directory (SLD), WebDynPro can send and receive data independantly of the source.  SAP ERP/CRM systems will expose their functionality using RFC-enabled BAPIs.  These functions can be standard SAP delivered modules or custom developed using ABAP. 
    The choice of where to develop your business logic really depends on the history/strengths of your organisation.  If you have a strong history of ABAP development in SAP, then it would be recommended to use ABAP for your business logic and WebDynPro for UI.  If J2EE is the strong suit, use that instead. 
    The WebDynPro interface runs in a browser (either IE or Firefox) however there is a beta version of a WebDynPro GUI for Windows which may offer some performance improvements. 
    HTH,
    Jonathan

  • How to develop a discussion forum using Java?

    I am actually developing a forum using Java. That would actually include registering process for a new user and if the user has an account, he can log in. The program should then generate a welcome message and a randomly-created password of 8 char (char+digits), this wil be printed on the screen. I am quite a newbie in this area.. Appreciate for ur help
    Thanzz....

    and what is more import than actual programming when making a software like a forum system is the database design.
    so first you have to designe your database
    decide which data that you have to store and decide what are the table that you will need and what columns that you want in the tables
    thats where you should start

  • WLS JMS supports the clients developed by using non-java program languages,such as,c++,VB...

              WLS JMS supports the clients developed by using non-java program languages,such
              as,c++,VB?
              

    The short answer is yes. This is a frequently asked question. I
              suggest searching this newsgroup in google using terms like "C++",
              "IIOP", ".NET", "JCOM".
              Note also that WL 8.1 (now out in beta) contains a thin java client
              (something like 0 or 300K without JMS, 700k with. The 0K client comes
              from leveraging WL's IIOP support.)
              Tom, BEA
              jerry8006 wrote:
              > WLS JMS supports the clients developed by using non-java program languages,such
              > as,c++,VB?
              

  • How to develop discussion forums using java

    Hi, can any one kindly explain how to develop disccussion forums using java.
    the application is like same as this forum. one post and the replies are come after that. creating new threads.
    any tutuorial is available for this. what is best dabase for this. and which application server is required.

    if you want to use a forum for sum purpose download an opensource forum software and deploy it in a server that support the serverside technology that it uses.
    If you dont want to go through the trouble of installing the the forum software (normally there is a quaita bit of configuration to do). Goole for Free Forum Hosting and you will get plenty of places that hosts forums for you. Since they do the installation you dont have to wory about that part.
    If you really want to develop a forum software first install an existing open source forum or get an account in a free forum hoster and take good look at the forum software and the features that it provides.
    In here you only see the front end of the forum. The back end is much more complicated. You have to define forums and forum groups, you have to define user groups, you have to define which users has access to which forums. who can start topics and who can reply to topics and whgo has read only access. And how to clollect and stor statistics like number of posts by each user. And the list goes on...
    So first take a look at the features in both front and back end of an existing forum software and decide what you want in your software. Then you can design the database to support those features. And then start coding.
    Technicaly you will need to know how to do servlets/JSP and JDBC in order to build a forum. Most important part is you have to do lots of planing.

  • Developing IDS or honeypot using java

    hi,
    i'm interested to develop either IDS or honeypot using java. i never heard of any java IDS or honeypot API, so it seems I have to start from the scratch, right? Can anyone here show me where should I start?

    there is one tool "JHONEYPOT" which is made using java and in case of IDS ,u can just study about snort IDS and find source code of it or logic of snort ,i think it will be simple to implement logic in java.

  • How to Develop a HTTP Webserver Using JAVA

    i need to develop a HTTP web server using Java. it should work like this when you run the web server giving the specific port number on command prompt , while i browse localhost :port number it should display the HTML pages where that i saved in HDD. can some one help me to do this task.....

    Anunatalie wrote:
    ... . can some one help me to do this task.....
    Yes

  • To Develop a Browser using Java

    Hi,
    I want to know if it is possible to write a browser using java.If so where can i get more information regarding this.
    Juz let me know the details.
    Thanks in advance...
    ramya

    Dear Ramya,
    You can use JEditorPane with setEditable(false) as the HTML rendering engine. For other components, you have to look elsewhere.
    S. Senthil kumar

  • How to develop e-commerce using java

    Can you please give me the source code for building e-commerce/web site using java?

    no, he wants the sourcecode of something that will
    let him build e-commerce sites.
    Something like one of those "create an online shopin
    5 minutes" packages you can buy from some stores.and he wants to use java. so the problem comes down
    to:
    java BuildMyECommerceSite <sitename>OH why didn't he say so ??
    Does he want the included tv advertising campaign ? ;-)

Maybe you are looking for

  • Since upgrading to Lion why does Safari freeze when using an email link?

    I have a 21.5 in iMac (purchased late 2009). Ever since I upgraded to Mac OS X Lion 10.7.2 I have had problems opening links from my email. Safari is my default browser, and now I when I open a link from my Mail, the browser functions do not respond.

  • Cs3 color setting xml file location ( colors.xml )

    In previous versions of dreamweaver ( or previous to windows vista ) I was able to access this file via documents and settings and then into the macromedia subfolders. It contained the file colors.xml which held my code coloring preferences. Any idea

  • Export Display (Login Screen) - How to use in MAC OSX LION !?!?!

    I'm having problems with exporting my display. I'm trying to connect and enable the connection between twoMAC OS X SERVER LION. and is not working. I want to begin a process that only after the user login is working. How to do this anyway? because no

  • Biztalk 2013 R2 SQL Support

    1 Various Microsoft articles state that Biztalk 2013 R2 SQL databases are supported by Microsoft on a Windows failover cluster.   Does this mean that SQL 2012 and/or 2014 AlwaysOn Failover Clustering is fully supported for BizTalk 2013R2 including MS

  • MBP 10.4.11 and Lacie D2 Quadra (audio)

    Is the D2 Quadra going to work OK with my MBP? I am using an MBOX2 for Pro Tools and I went to the MAC Store to look at external hard drive options. They reccomended the Lacie and for the price it looks good, but I am seeing alot of issues out there,