Deployment.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • qwert

    #1

    Deployment.

    Hello,

    I have a simple stand-alone mysql database application build with NetBeans
    IDE 5.0 on a Windows system. The application uses several libraries. I need
    to to deploy this by means of a cd. Is there an automated method for this?
    How do I gather and install all the required libraries? I need to be able to
    install it on a mactintosh (OS Tiger). Is an installation cd for a macintosh
    similar to a installation cd for a Windows system?

    I'm new to Java programming. All this is unknown. Any info is welcome,

    Thanks.


    (Is it me, or is it the learning curve for Java development pretty high in
    the beginning. I don't mean the language itself but the incredible amount of
    tools to choose from such as the environments (IDE's). I think I downloaded
    like 6 applications before ending up with NetBeans and I'm not sure if it's
    the correct one. It seems like it can do most of the basic stuff, but I'm
    afraid NetBeans is like a layer on top of Java and therefore makes it less
    platform-independent. On their site they say this isn't the case. For me
    platform-independent was the main reason to try Java.)


  • Sigmund Hansen

    #2
    Re: Deployment.

    qwert wrote:[color=blue]
    > Hello,
    >
    > I have a simple stand-alone mysql database application build with NetBeans
    > IDE 5.0 on a Windows system. The application uses several libraries. I need
    > to to deploy this by means of a cd. Is there an automated method for this?
    > How do I gather and install all the required libraries? I need to be able to
    > install it on a mactintosh (OS Tiger). Is an installation cd for a macintosh
    > similar to a installation cd for a Windows system?
    >
    > I'm new to Java programming. All this is unknown. Any info is welcome,
    >
    > Thanks.
    >
    >
    > (Is it me, or is it the learning curve for Java development pretty high in
    > the beginning. I don't mean the language itself but the incredible amount of
    > tools to choose from such as the environments (IDE's). I think I downloaded
    > like 6 applications before ending up with NetBeans and I'm not sure if it's
    > the correct one. It seems like it can do most of the basic stuff, but I'm
    > afraid NetBeans is like a layer on top of Java and therefore makes it less
    > platform-independent. On their site they say this isn't the case. For me
    > platform-independent was the main reason to try Java.)
    >
    >[/color]
    NetBeans is platform independent,
    and unless your code uses platform-dependent libraries which don't have
    ports for other platforms,
    then your code becomes platform-dependent.
    For instance LWJGL is a platform-dependent library, but it has ports for
    most systems (win, mac and linux, not sure about other *nix systems, but
    I expect the linux version runs on most of them).

    NetBeans is a pretty good IDE, but a lot of people prefer to Eclipse,
    which has become open source and free from what I gather.
    I've always used NetBeans and before it changed into two different IDEs
    Sun Java ONE Studio(which became a commercial IDE I think as part of the
    whole Sun ONE Studio package)...

    Anyway,
    if you want a Mac specific installation CD, that uses a native Mac
    installer and the CD being in the Mac format,
    then it would be slightly different from a Win CD.
    If you just want a platform independent CD, with a platform independent
    installer (for instance made in Java),
    then there's no difference.
    In the first case scenario, I really don't know what you should do,
    first you'd need to be able to burn Mac formatted CDs (Macs can read win
    cds as well, but I don't think you can have Mac executables on one),
    this could for instance be done with MediaFour's MacDrive, but they
    might have another product made specifically for making Mac CDs.
    Then you'd need to find some kind of installer software that could be
    set up and possibly compiled for mac use on a win machine, which I
    suspect isn't easy.

    In the latter case, if you need an installer, then there are several out
    there for java applications, although I've never used one so I don't
    know them specifically I've just seen people talking about them.
    So, I don't know exactly which libraries you've used, and how hard they
    might be to deploy for a mac system.
    If they are platform independent, it's probably just a .jar file or
    something similar, which would be really easy to install (just place it
    somewhere, and put it in the classpath).
    If they are platform specific you need to install the one for the
    correct platform and set up the
    -Djava.library.p ath=path/to/native/library option...

    Well,
    unnecessarily long answer, but hopefully might help some...

    Comment

    • qwert

      #3
      Re: Deployment.

      Great thanks for your help. Makes sense.


      "Sigmund Hansen" <sigmunha@stude nt.hf.uio.no> wrote in message
      news:AKf2g.9731 $zc1.5518@amstw ist00...[color=blue]
      > qwert wrote:[color=green]
      > > Hello,
      > >
      > > I have a simple stand-alone mysql database application build with[/color][/color]
      NetBeans[color=blue][color=green]
      > > IDE 5.0 on a Windows system. The application uses several libraries. I[/color][/color]
      need[color=blue][color=green]
      > > to to deploy this by means of a cd. Is there an automated method for[/color][/color]
      this?[color=blue][color=green]
      > > How do I gather and install all the required libraries? I need to be[/color][/color]
      able to[color=blue][color=green]
      > > install it on a mactintosh (OS Tiger). Is an installation cd for a[/color][/color]
      macintosh[color=blue][color=green]
      > > similar to a installation cd for a Windows system?
      > >
      > > I'm new to Java programming. All this is unknown. Any info is welcome,
      > >
      > > Thanks.
      > >
      > >
      > > (Is it me, or is it the learning curve for Java development pretty high[/color][/color]
      in[color=blue][color=green]
      > > the beginning. I don't mean the language itself but the incredible[/color][/color]
      amount of[color=blue][color=green]
      > > tools to choose from such as the environments (IDE's). I think I[/color][/color]
      downloaded[color=blue][color=green]
      > > like 6 applications before ending up with NetBeans and I'm not sure if[/color][/color]
      it's[color=blue][color=green]
      > > the correct one. It seems like it can do most of the basic stuff, but[/color][/color]
      I'm[color=blue][color=green]
      > > afraid NetBeans is like a layer on top of Java and therefore makes it[/color][/color]
      less[color=blue][color=green]
      > > platform-independent. On their site they say this isn't the case. For me
      > > platform-independent was the main reason to try Java.)
      > >
      > >[/color]
      > NetBeans is platform independent,
      > and unless your code uses platform-dependent libraries which don't have
      > ports for other platforms,
      > then your code becomes platform-dependent.
      > For instance LWJGL is a platform-dependent library, but it has ports for
      > most systems (win, mac and linux, not sure about other *nix systems, but
      > I expect the linux version runs on most of them).
      >
      > NetBeans is a pretty good IDE, but a lot of people prefer to Eclipse,
      > which has become open source and free from what I gather.
      > I've always used NetBeans and before it changed into two different IDEs
      > Sun Java ONE Studio(which became a commercial IDE I think as part of the
      > whole Sun ONE Studio package)...
      >
      > Anyway,
      > if you want a Mac specific installation CD, that uses a native Mac
      > installer and the CD being in the Mac format,
      > then it would be slightly different from a Win CD.
      > If you just want a platform independent CD, with a platform independent
      > installer (for instance made in Java),
      > then there's no difference.
      > In the first case scenario, I really don't know what you should do,
      > first you'd need to be able to burn Mac formatted CDs (Macs can read win
      > cds as well, but I don't think you can have Mac executables on one),
      > this could for instance be done with MediaFour's MacDrive, but they
      > might have another product made specifically for making Mac CDs.
      > Then you'd need to find some kind of installer software that could be
      > set up and possibly compiled for mac use on a win machine, which I
      > suspect isn't easy.
      >
      > In the latter case, if you need an installer, then there are several out
      > there for java applications, although I've never used one so I don't
      > know them specifically I've just seen people talking about them.
      > So, I don't know exactly which libraries you've used, and how hard they
      > might be to deploy for a mac system.
      > If they are platform independent, it's probably just a .jar file or
      > something similar, which would be really easy to install (just place it
      > somewhere, and put it in the classpath).
      > If they are platform specific you need to install the one for the
      > correct platform and set up the
      > -Djava.library.p ath=path/to/native/library option...
      >
      > Well,
      > unnecessarily long answer, but hopefully might help some...[/color]


      Comment

      Working...