J2SE question

How to send a SMS using J2SE???
is there a way to import J2ME library to J2SE????

send SMS??
3 methods
1. Try finding some SMS sending service on net
Is there some specific mobile service provider that you want to use??
If yes ask your service provider 2 things.
2. How to send SMS using URL
3. Is SMSC there. If yes try jsmpp.
analyse above 3 things and you will get your optimal solution

Similar Messages

  • GUI Screen(JFrame) question

    Hi, I'm not sure if this is ok but I asked a J2SE question about moving from one screen to the next. I have another question; if the screens are dependent on each other i.e. data on one screen has to be displayed and triggers events on the next screen. How do I pass the data from screen to screen and after completing updates on the second screen, make the first screen visible from the second i.e. move back to the first screen?
    Can I keep the screens visible but get focus on only one? So that the other visible screens cannot be modified.

    Im not sure you exactly what your trying to do here, referring to your previous post. In most cases you will only want a single JFrame and muiple panels for various display, however essentially the concept is the same in either case. Youll have a single data model, multiple views.. You should provide methods to handle transitions of data from model to view/ view to model etc...
    When a panel or frame is shown youll typically update that gui with the current data. when a panel or frame is closed youll again most likely want to update the data from the view being closed. You can do this in event handlers. When multiple guis are open, that access the same data, youll have a bit of an interesting problem...
    A good solution is Observer/Observable.
    Where a change in data is observed by guis and guis automatically update......
    Hope this helps/

  • Question about the new JAVA Update J2SE 5.0 Release 3

    Here is some info about this update:
    Java 2 Platform, Standard Edition (J2SE) 5.0 Release 3 allows applications and applets developed for the J2SE 5.0 platform to run on Mac OS X v 10.4.2 and later.
    This update does NOT CHANGE the DEFAULT VERSION of Java on your Mac from Java 1.4.2 to J2SE 5.0, though Java applications that require J2SE 5.0 may specifically request it. You can change the preferred Java version for applications and applets by using the new Java Preferences utility. This utility is installed by the J2SE 5.0 update at /Applications/Utilities/Java/J2SE 5.0/.
    http://docs.info.apple.com/article.html?artnum=302412
    HERE IS MY QUESTION---
    This update makes me nervous cause I don't know much about Java. IF I change my default version to this new 5.0 will it mean that some of the older Java stuff on the web won't work? Should I just download this and ignore it? What should I do about this update?
    Thanks for the help!
    Renée

    I too seem to be suffering issues with loading web pages after the 10.4.3/Java 5.0 update. I have reinstalled both updates, changed the java settings, emptied all the caches, and tried various combinations thereof, and I still have problems with web pages loaded. most of the problems appear to be related to rendering frames and images - In fact a couple of web sites I navigate to (upon looking at the source for the page" state "It appears your browser does not support frames." I think this is something broken in the latest release. Unfortunately, I cannot reinstall the latest copy of Safari, because the installer states "This version of Safari cannot be installed. It requires version 10.4.2." I guess I am in a pickle until Apple comes out with another update. BTW I have some pages that Safari will not render but IE running on the same box will. I also noticed that the problem propagated to other applications that use Java....For instance the Dashboard widget from google (Google Maps) no longer renders the tiled (framed?) map pieces...instead you get the ubiquitous "?" icon.

  • Does SCWCD ask question about J2SE

    J2SE are covered by SCJP. does SCWCD exam ask question about J2SE such as collection,assersion...
    Thanks

    of course you do need to have in depth knowledge about JSE as such knowledge will be assumed (after all, you did have to pass SCJP to be able to enlist for SCWCD).
    So the subjects may turn up in questions, but they won't be the things you're tested on.

  • Question about J2SE-File-Adapter

    Hallo,
    i would send with the J2SE-File-Adapter a *.CSV to SAP XI.
    The structure in the SAP XI is:
    PlaintMaintenanceMessagetype
    ......Datasource..................string
    ......Data
    ..........item
    ..............EquipmentID.............string
    ..............FunktionalLocation......string
    ..............Data....................string
    ..............Time....................string
    The *.csv File structure is:
    6ATESTDEMOYVES,
    1234,
    Limo,
    20060105,
    122030,
    The configuration of the J2SE-File-Adapter is:
    classname=com.sap.aii.messaging.adapter.ModuleFile2XMB
    version=30
    mode=FILE2XMBWITHROWCONVERSION
    ##File Adapter specific parameters (example, see docu)
    ##file.type=BIN
    file.type=TXT
    file.encoding=UTF-8
    xml.documentName=ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender"
    xml.structureTitle=6ATESTDEMOYVES
    xml.processFieldNames=fromConfiguration
    xml.fieldSeparator=;
    xml.fieldNames=Datasource,EpuipmentID,FunctionalLocation,Data,Time
    But it not runing! Can anybody help me? Are any How to guide to send a *.csv with the J2SE-File-Adapter.
    Thanks laura
    With the XML File it works. But there are ofer 40000 records in the *.csv, and i will not create this in *.xml!
    The structure of the XML.File are:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:PlaintMaintenanceMessagetype xmlns:ns="http://doehler.com/sapxi/krausdemosender">
      <Datasource>6ATESTDEMOYVES</Datasource>
      <Data>
        <item>
          <EpuipmentID>1234</EpuipmentID>
          <FunctionalLocation>Limo</FunctionalLocation>
          <Data>20060105</Data>
          <Time>122030</Time>
        </item>
        <item>
          <EpuipmentID>1235</EpuipmentID>
          <FunctionalLocation>Bier</FunctionalLocation>
          <Data>20060106</Data>
          <Time>122031</Time>
        </item>
       </Data>
    </ns:PlaintMaintenanceMessagetype>

    Hi Laura,
    You can navigate thru these links to get more information:
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/246b3de666930fe10000000a114084/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e698aa90-0201-0010-7982-b498e02af76b
    Cheers,
    Chandra

  • Question about J2SE execution acceleration.

    I have heard that there are ways, apart from any code optimisation,
    to accelerate the execution of java programs (for example,
    when it starts, there is a pause at the beginning).
    Using
    -The Official Oracle J2SE compiler and runtime environment.
    -The MINGW32 GCJ compiler and runtime,
    what simple options are there to have a "leap start" and quicker execution?

    Where (or rather when) did you hear this from? The GCJ compiler hasn't been viable for years really.
    Most of the optimization tricks have gone the way of the Dodo, do you really have an issue where the startup time is too much? What are your runtime memory settings for the program?

  • Three Questions about J2SE 5.0

    I'm liking what I see with this new upgrade to Java, but I do have some questions that I hope you guys might be able to answer:
    1) Generics and Arrays
    I'm updating a container class I wrote which used an Object array to store its elements:
    Before:
    public class BinaryHeap implements java.util.Collection {
        Object[] elements;
    After:
    public class BinaryHeap<E> implements java.util.Collection<E> {
       E[] elements;
    }Everything works well until the constructor...
    public BinaryHeap<E>() {
       elements = new E[DEFAULT_SIZE];  // Doesn't compile
    }My question is, how do I create an array of parameterized types?
    2) Metadata
    Yeah, what does it do and how do I use it? This question's open to all input.
    3) Variable arguments
    I understand how to declare a method with them, but not how to access them within the method. Any clarification?
    Thank you very much for your help!

    1) I peeked into the source code for ArrayList, and here is what was done there:
    import java.util.*;
    public class BinaryHeap<E> extends java.util.AbstractCollection<E> {
        private E[] elements;
        private static final int DEFAULT_SIZE =17;
        public BinaryHeap() {
           elements = (E[]) new Object[DEFAULT_SIZE]; //<<--------<<
        //to make class non-abstract
        public int size() {
            return 0;
         //to make class non-abstract
        public Iterator<E> iterator() {
            return null;
        public static void main(String[] args) {
            new BinaryHeap<Integer>();
    }

  • Question: J2SE use of JMS/JNDI

    Is it possibe to JMS to communicate between main methods/threads
    running in separate instance of the the Sun MicroSystem's
    Java virtual machine, or is a third party program needed,
    like JBoss?
    May a JNDI Context lookup, with J2EE installed,
    be used to lookup between Java Virtual Machines?

    Zac1234 wrote:
    Is it possibe to JMS to communicate between main methods/threads
    running in separate instance of the the Sun MicroSystem's
    Java virtual machine, and
    or is a third party program needed,Are not a simple either/or choice. You can indeed use JMS in a J2SE context, without needing an app. server. But you'll still need a JMS provider. Apache ActiveMQ would be handy. Google "POJO JMS" for more info than you can shake a stick at on this subject

  • J2EE & J2SE install questions

    I downloaded and installed this release on my Windows XP machine. The name of the install-executable is j2eesdk-1_4-dr-windows-eval.exe.
    In the download website, it said this includes J2SE 1.4.2_02 also, although after installation, none of the online documentation for J2SE seems to be present, only J2EE-specific ones (includng EJB, security, server, web, etc) are present.
    Do I need to install the J2SE SDK separately to get access to the regular J2SE code and documentation? Or, is this all comes with the J2EE SDK?
    Also, when I install the J2EE SDK, it default-installs into C:\Sun\AppServer. When I install J2SE SDK, it default-installs into C:\j2sdk1.4.2_03 and also installs something into C:\Program Files\Java\... Why this inconsistency? Is the C:\Program Files\Java\... piece just the JRE? If so, why doesn't the J2EE install also install a JRE this way?

    So, you have J2EE SDK already installed, and you want to use another J2SE version that you installed separately, right?
    To do that, you should update <j2EE_install_dir>/config/asenv.bat file. Variable AS_JAVA should point to new J2SE installation directory. Then, you also need to change the J2SE installation used by default server domain - easiest way to do that is to use admin console and follow instructions available here:
    http://docs.sun.com/source/817-6088/jvm.html#wp1027918

  • A J2SE 1.4 Question  :  Someboby please help.

    Hello, I have a question about The new class NetworkInterface.java in the net package. I am a freshman in computer science and a newly sun certified programmer. I am writing a class to retrieve a Network' s public (ip)address from the inside (from a local machine). So I 'd like to know what is a network interface if that is what the class represents and if that could help me do the job please put me in the right direction.
    Thanks.

    I do not need the localhost's ip. I am not trying to
    get my computer's ip assigned by the network's
    firewall/NAT. What I want is the Network's PUBLIC ip
    by which it connects to the Internet( or by which the
    Internet connects to it) As far as I know, the only sure way to do this is to ask your network's administrator.
    If you knew how many routers there were between you and the firewall you could parse the output of traceroute, but if you knew that much detail about your network, you would probably already know the address in question.

  • Simple J2SE 1.4 question

    Hi,
    I'm a bit confused as to how the java compiler, jvm, etc. works.
    I've developed code ( a Servlet and some classes) using J2SE 1.3 . I would like to use 1.4 so that I can use assertions. If I use 1.4 and assertions will the code run on just about any Servlet container? Even if it is using J2SE 1.3? I do not need any other J2SE 1.4 features, just assertions.

    No, it wouldn't work. The VM must support assertions. As well as have them explicitly turned on on the command line.
    Actually, if you try to run code compiled with 1.4 on a 1.3 VM, it will refuse to load your classes, complaining about incompatible or unsupported class format.
    Pretty much every servlet container (except some IBM-produced ones) allow you to use whatever VM you want to use, so shouldn't be too much of a problem.
    .P.

  • J2SE to J2EE - general question

    Hi,
    I have an application, made up of several classes, written in J2SE. What does it entail to make these classes J2EE-compliant? changing import statements to include J2EE-specific classes? is it a major overhaul?

    It depends on your application really, by the sounds of it you should first familiarise yourself with J2EE technology.
    A good place to start is the J2EE tutorial
    http://developer.java.sun.com/developer/earlyAccess/j2ee/tutorial.html

  • MyApp example J2SE application JAAS question regarding jazn.xml

    Hi, any help with the following is much appreciated.
    I'm going through the MyApp J2SE application [1] and I need this to run using LDAP, so here's what my jazn.xml file looks like:
    <?xml version="1.0" encoding="UTF-8" standalone='yes'?>
    <!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn.dtd">
    <jazn provider="LDAP" location="ldap://devas:3060"/>
    My jaas.config file:
    MyApp
    oracle.security.jazn.realm.RealmLoginModule required;
    and I borrowed the the java.policy file which comes with OC4J.
    The problem: when I execute my application I receive the following (I'm including only the necessary bits of the stacktrace):
    java.security.policy: error parsing file:/C:/tfuller/securityresearch/config/jazn.xml:
         line 1: expected [;], found [<]
    java.security.AccessControlException: access denied (javax.security.auth.AuthPermission createLoginContext.MyApp)
    This will still happen if I remove the first two lines of jazn.xml.
    Any idea what's wrong here?
    Thomas
    [1] Page 8-2, Developing Secure J2SE Applications Overview, http://www.oracle.com/technology/tech/java/oc4j/pdf/oc4j_j2ee_svcguide_r2.pdf
    Message was edited by:
    Thomas P. Fuller

    Thomas,
    did you configure JAZN as your security provider? Otherwise you would run the file with the default provider enabled, which is configured in the \jre\lib\security\java.security file. The default configuration is
    policy.provider=sun.security.provider.PolicyFile
    The OC4J security documentation also contains the information of what need to be done to make JAZN work with JRE
    Frank

  • JNLP file j2se tag question

    We would like to have all our clients running on 1.5.0_11 or later, but NOT
    1.6.0. So when _12 or _13 comes out 1.5.0_12 or 1.5.0_13 is ok.
    Currently our version attribute reads version="1.5.0_11+"
    But removing the + would then limit to just that JRE version
    Does anyone know what the version attribute supports?
    I know that it supports + and *, but can it support a range or regEx? Thanks.

    +1 on this issue. We are having the exact same problem, and it's an important one for us. We need our clients to be using a version of the JRE which contains the DST fix, so we can't just say 1.5.0+. We also are not certified on 1.6, so we can't allow 1.6 download. Many of our clients standardize on a JRE as corporate policy, so we can't mandate a specific micro-version, such as hard-coding 1.5.0_11.
    Please help, Sun!

  • J2SE Adapter Registration

    I've tried to get an answer for this question long time ago, but no one ever answered.
    How to register J2SE adapter with XI ?
    I tried using SLDAccess service on J2SE adapter with no luck (with this J2SE Adapter Engine is registered in the SLD). My J2SE adapter was never available in the configuration means, in the communication channel ex: file adapter, for the adapter engine drop down all I have is Integration Server, my J2SE adapter was never listed there.
    thanks
    SKM

    Tony,
    You do not need FTP server to use file adapter. I've installed and configured a J2SE Adapter Engine on my laptop.
    I was able to use sender adapter but not the receiver adapter. I've followed all kinds of documentation, asked Qs in the forum but never got any feed back.
    After you install plain J2SE AE on your laptop, you have to configure SLDAccess service. Once it is connected to SLD, you can see the adapter engine name in the XI technical systems.
    Then you can configure FileAdapters by copying the existing one. Go through the Adapter documention in the installed directory.
    Hope this helps.
    Regards
    SKM

Maybe you are looking for