Yimin
Posts: 1
|
Posted: 03/09/2006, 7:39 AM |
|
I have created a jsp-project with codecharg studio 3.0.2.2, and works well.
but, how can i extact this project to a jar file, that i can make Integration with Portal later.
pls reply.
|
|
|
LH_13
Posts: 30
|
Posted: 04/17/2006, 4:59 AM |
|
May be you have in mind .war file?
Web application is packing to .war file.
This option in ProjectSettings->Server/Script->deployWebAppAs.
Here you can pack application to jar.
Sorry My English.
_________________
Sorry my english! |
|
|
jigar
|
Posted: 04/28/2006, 10:28 AM |
|
if your code is *.java format than the easy to convert it in *.jar.
but inform of the other files it is not directly converted to *.jar, You have to attech this as manifest file. Try this. best luck.
|
|
|
saviola
|
Posted: 05/19/2006, 5:25 AM |
|
hello
how are you ???
tell me i'm a developper
i just the first time use this software(CodeCharge Studio), i want creat application with jsp and servlet but i don't how can i do it please if u can send me some lessons or how to resolve my problem, thnxs
bye
|
|
|
ashish
|
Posted: 06/20/2006, 5:12 AM |
|
Hi i am having a problem with running my JS application in JCreater.
it always shows that Package javax.speech not found.
i already set the jsapi.jar and freetts.jar file in class path.
i am using j2sdk1.4.2_06 and JCreater.
i sendig u code
// TextSpeaker.java
import java.awt.*;
import java.awt.event.*;
import javax.speech.*;
import javax.speech.synthesis.*;
import javax.swing.*;
public class TextSpeaker
{
static Synthesizer synth;
public static JFrame createGUI ()
{
JFrame frame = new JFrame ("Text Speaker");
WindowListener wl;
wl = new WindowAdapter ()
{
public void windowClosing(WindowEvent e)
{
try
{
// Deallocate synthesizer
// resources.
synth.deallocate ();
}
catch (EngineException e2)
{
}
System.exit (0);
}
};
frame.addWindowListener (wl);
JPanel p = new JPanel ();
p.add (new JLabel ("Specify text to " +"speak:"));
final JTextField text = new JTextField (20);
p.add (text);
frame.getContentPane ().add (p,BorderLayout.NORTH);
p = new JPanel ();
p.setLayout (new FlowLayout(FlowLayout.RIGHT));
JButton btnSpeak = new JButton ("Speak");
ActionListener al;
al = new ActionListener ()
{
public void actionPerformed(ActionEvent e)
{
// Speak the context of the text
// field, ignoring JSML tags.
// Pass null as the second
// argument because I am not
// interested in attaching a
// listener that receives events
// as text is spoken.
synth.speakPlainText(text.getText (), null);
try
{
// Block this thread until
// the synthesizer's queue
// is empty (all text has
// been spoken). Normally,
// blocking the
// event-dispatching thread
// is not a good idea.
// However, the amount of
// text to be spoken should
// not take more than a few
// seconds to speak, and the
// user probably would not
// need to do anything with
// the GUI until the text
// had been spoken.
synth.waitEngineState
(Synthesizer.QUEUE_EMPTY);
}
catch (InterruptedException e2)
{
}
}
};
btnSpeak.addActionListener (al);
p.add (btnSpeak);
JButton btnClear = new JButton ("Clear");
al = new ActionListener ()
{
public void actionPerformed(ActionEvent e)
{
text.setText ("");
text.requestFocusInWindow ();
}
};
btnClear.addActionListener (al);
p.add (btnClear);
frame.getContentPane ().add (p,BorderLayout.SOUTH);
frame.getRootPane ().setDefaultButton(btnSpeak);
frame.pack ();
return frame;
}
public static void main (String [] args)
{
try
{
// Create a synthesizer for the default
// locale.
synth = Central.createSynthesizer(null);
// Allocate synthesizer resources.
synth.allocate ();
// Place synthesizer in the RESUMED
// state so that it can produce speech
// as it receives text.
synth.resume ();
}
catch (Exception e)
{
//System.out.println("In main");
e.printStackTrace();
//JOptionPane.showMessageDialog (null,e.getMessage ());
//System.exit (0);
}
createGUI ().setVisible (true);
}
}
|
|
|
LH13
|
Posted: 06/20/2006, 7:11 AM |
|
It's java with CCS forum.
It's NOT pure java forum and NOT javaScript forum.
|
|
|
|