Main circuit not found in spice netlist

Hi all,
I'm trying to import a .cir file for vishay 6N137, however I keep getting the error main circuit not found in spice netlist.  Does anyone know what is wrong with the spice file?  I've pasted it below.
** Spice3 Model **
**  --  6n137,VO2601/11, VO0600/01/11 ---
**  High speed 10 Mbd, NMOS output, enable- high
**  12/02/2009 mfc
** test conditions:VCC=5V, RL=350, CL=15pF, IF=10mA
** characteristics: VF=1.4V, ITH=5mA, VEH=2V, VEL=0.8V
** VOL=0.6V, tpLH=TpHL=70nS, tr=22nS, tf=17nS
** Model Node - Symbol - Pin
** 1 (DA)       A          2
** 2 (DK)       K          3
** 3 (GND)    GND          5
** 4 (VO)       VO         6
** 5 (VE)       VE         7
** 6 (VCC)    VCC          8
.SUBCKT 6N137  DA DK GND VO VE VCC
DD1 DA 6         DEMIT
vV1 6 DK  DC 0
hH1 1 GND vV1 600  ;5mA -> 3.0V
AU1.A  [1] [DU1.A]           ADC_A
AU1    [DU1.C DU1.A] [DU1.Y] XBUF_H   ;DIGITAL BUF WITH CTL
AU1.C  [VE] [DU1.C]          ADC_C
AU1.Y  [DU1.Y] [2]           DAC_Y
R1 2 5 1K
R3 VCC VE 6.4K
**QQ1 VO 5 GND Q_NPN          ;OC OUTPUT
XQ1 VO 5 GND Q_NMOS           ;NMOS OUTPUT
.MODEL    DEMIT   D
+IS=1.69341E-12 RS=2.5 N=2.4  XTI=4
+EG=1.52436 CJO=1.80001E-11 VJ=0.75 M=0.5 FC=0.5
.MODEL Q_NPN  NPN
+ IS=100P BF=100 NF=1.0 BR=1.0 TF=0 TR=0 CJE=1P CJC=1P CJS=1P VAF=1.0E30
.SUBCKT Q_NMOS 1 2 3
CGS  2 3 12E-12
CGD  1 2 6E-12
M1 1 2 3 3 MOST1 W=9.7M L=2U
.MODEL MOST1 NMOS(LEVEL=3 KP=25U VTO=2 RD=45)
.ENDS
.MODEL XBUF_H D_CHIP ( BEHAVIOUR= "
+; BUFFER W/ H-ENABLE 3-STATE CONTROL, 100 NS L-H(RISE) H-L(FALL) DELAY
+/INPUTS C A
+/OUTPUTS Y
+/TABLE 2
+; C  A  Y
+  L  X  Z
+  H  X  A
+/DELAY 1
+;INPUT OUTPUT RISE_DELAY FALL_DELAY
+   A     Y        50N       50N
+/CONDITIONAL_DELAY 4
+;EVENT TO CONDITION OUTPUT MIN/MAX TIME
+   ZH  C   (C=L)    Y     MAX     0
+   ZL  C   (C=L)    Y     MAX     0
+   HZ  C   (C=H)    Y     MAX     0
+   LZ  C   (C=H)    Y     MAX     0
+")
.MODEL ADC_A ADC_BRIDGE (IN_LOW= 2.8 IN_HIGH = 3.0 )
.MODEL ADC_C ADC_BRIDGE (IN_LOW= 0.8 IN_HIGH = 2.0 )
.MODEL DAC_Y DAC_BRIDGE (OUT_LOW= 0 OUT_HIGH = 4.0 OUT_UNDEF = 0)
.ENDS 6N137
**==================================================================*
* Note:                                                             *
* Altough models can be a useful tool in evaluating device          *
* performance, they cannot model exact device performance           *
* under all conditions, nor are they intended to replace            *
* breadboarding for final verification!                             *
* Models provided by VISHAY Semiconductors GmbH are not             *
* as fully representing all of the specifications and operating     *
* characteristics of the semiconductor product to which the         *
* model relates.                                                    *
* The models describe the characteristics of typical devices.       *
* In all cases, the current data sheet information for a given      *
* device is the final design guideline and the only actual          *
* performance specification.                                        *
* VISHAY Semiconductors does not assume any liability arising       *
* from the model use. VISHAY Semiconductors reserves the right to   *
* change models without prior notice.                    *
**==================================================================*

Hi everyone!
I am having the same problem with this spice code
I follwed the instructions in the NI Whitepaper www.ni.com/white-paper/3173/en/
Can anybode help? Thank you very much
* AMP04 SPICE Macro-model
* Description: Amplifier
* Generic Desc: BiPolar, InAmp, LoPwr, single supply
* Developed by: JCB / PMI
* Revision History: 08/10/2012 - Updated to new header style
* 1.0 ( 05/1994)
* Copyright 1994, 2012 by Analog Devices, Inc.
* Refer to http://www.analog.com/Analog_Root/static/techSupport/designTools/spiceModels/license/spice_general.h... for License Statement. Use of this model
* indicates your acceptance of the terms and provisions in the License Statement.
* BEGIN Notes:
* Not Modeled:
* Parameters modeled include:
* END Notes
* Node assignments
* Rgain1
* | IN-
* | | IN+
* | | | V-
* | | | | REF
* | | | | | Vout
* | | | | | | V+
* | | | | | | | Rgain2
* | | | | | | | |
.SUBCKT AMP04 1 2 3 4 5 6 7 8
* INPUT STAGE
R1 2 9 2E3
R2 9 11 2E9
R3 11 12 2E9
R4 3 12 2E3
IB1 2 98 22E-9
IB2 3 98 21E-9
VOS 12 13 25E-6
D1 9 10 DY
D2 1 10 DY
D3 12 14 DY
D4 8 14 DY
* 1ST AMP GAIN STAGE, POLE AT 0.44 HZ
EREF 98 0 (60,0) 1
G1 98 15 9 1 1E-3
R5 98 15 1E9
C1 98 15 362E-12
* SECOND POLE AT 1 MHZ
G3 98 16 15 98 1E-6
R6 98 16 1E6
C2 98 16 159E-15
* OUTPUT STAGE
E2 22 98 16 98 1
R14 22 1 200
* 2ND AMP GAIN STAGE, POLE AT 0.44 HZ
G2 98 17 13 23 1E-3
R7 98 17 1E9
C3 98 17 362E-12
* SECOND POLE AT 1 MHZ
G4 98 18 17 98 1E-6
R8 98 18 1E6
C4 98 18 159E-15
* CMRR STAGE
E1 98 19 POLY(2) (2,98) (3,98) 0 5 5
R9 19 20 1E6
R10 20 98 1
* OUTPUT STAGE
E3 21 98 18 98 1
R11 21 8 11E3
R12 21 23 11E3
R13 23 5 100.2E3
* OUTPUT AMPLIFIER INPUT STAGE & POLE AT 10 KHZ
R15 29 4 5.16E3
R16 28 4 5.16E3
I1 7 30 10UA
EOS 27 3 POLY(1) 20 98 30E-6 1
Q1 29 8 30 QX
Q2 28 27 30 QX
R20 8 6 100.2E3
CIN 28 29 20E-12
* SECOND GAIN STAGE AND SLEW CLAMP
R71 31 98 1E6
G71 98 31 28 29 48.2E-6
D30 31 32 DX
D40 33 31 DX
E10 7 32 POLY(1) 7 98 -0.5 1
E20 33 4 POLY(1) 98 4 -0.5 1
* OUTPUT STAGE
RS1 7 60 1E6
RS2 60 4 1E6
ISY 7 4 0.124E-3
G7 34 36 31 98 5.5E-06
V3 35 4 DC 6
D7 36 35 DX
VB2 34 4 1.6
R22 37 36 1E3
R23 38 36 500
C6 37 6 50E-12
C7 38 39 50E-12
M1 39 36 4 4 MN L=9E-6 W=1000E-6 AD=15E-9 AS=15E-9
M2 45 36 4 4 MN L=9E-6 W=1000E-6 AD=15E-9 AS=15E-9
D8 39 47 DX
D9 47 45 DX
Q3 39 40 41 QPA 8
VB 7 40 DC 0.761
R24 7 41 375
Q4 41 7 43 QNA 1
R25 7 43 50
Q5 43 39 6 QNA 20
Q6 46 45 6 QPA 20
R26 46 4 23
Q7 36 46 4 QNA 1
M3 6 36 4 4 MN L=9E-6 W=2000E-6 AD=30E-9 AS=30E-9
.MODEL QNA NPN(BF=253)
.MODEL MN NMOS(LEVEL=3 VTO=1.3 RS=0.3 RD=0.3 TOX=8.5E-8
+ LD=1.48E-6 WD=1E-6 NSUB=1.53E16 UO=650 DELTA=10 VMAX=2E5
+ XJ=1.75E-6 KAPPA=0.8 ETA=0.066 CJ=0 L=9E-6 W=2000E-6)
.MODEL QPA PNP(BF=61.5)
.MODEL QX PNP(BF=12500)
.MODEL DX D
.MODEL DY D(BV=6.0)
.ENDS

Similar Messages

  • Main method not found and how to put event handlers in an inner class

    How would I put all the event handling methods in an inner class and I have another class that just that is just a main function, but when i try to run the project, it says main is not found. Here are the two classes, first one sets up everything and the second one is just main.
    mport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class JournalFrame extends JFrame {
    private JLabel dateLabel = new JLabel("Date: ");
    private JTextField dateField = new JTextField(20);
    private JPanel datePanel = new JPanel(new FlowLayout());
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel radioPanel = new JPanel();
    JPanel statusPanel = new JPanel();
    JPanel textAreaPanel = new JPanel();
    JPanel buttonPanel = new JPanel();
    GridLayout gridLayout1 = new GridLayout();
    FlowLayout flowLayout1 = new FlowLayout();
    GridLayout gridLayout2 = new GridLayout();
    GridLayout gridLayout3 = new GridLayout();
    JRadioButton personalButton = new JRadioButton();
    JRadioButton businessButton = new JRadioButton();
    JLabel status = new JLabel();
    JTextArea entryArea = new JTextArea();
    JButton clearButton = new JButton();
    JButton saveButton = new JButton();
    ButtonGroup entryType = new ButtonGroup();
    public JournalFrame(){
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void initWidgets(){
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(borderLayout1);
    radioPanel.setLayout(gridLayout1);
    statusPanel.setLayout(flowLayout1);
    textAreaPanel.setLayout(gridLayout2);
    buttonPanel.setLayout(gridLayout3);
    personalButton.setSelected(true);
    personalButton.setText("Personal");
    personalButton.addActionListener(new JournalFrame_personalButton_actionAdapter(this));
    businessButton.setText("Business");
    status.setText("");
    entryArea.setText("");
    entryArea.setColumns(10);
    entryArea.setLineWrap(true);
    entryArea.setRows(30);
    entryArea.setWrapStyleWord(true);
    clearButton.setPreferredSize(new Dimension(125, 25));
    clearButton.setText("Clear Journal Entry");
    clearButton.addActionListener(new JournalFrame_clearButton_actionAdapter(this));
    saveButton.setText("Save Journal Entry");
    saveButton.addActionListener(new JournalFrame_saveButton_actionAdapter(this));
    this.setTitle("Journal");
    gridLayout3.setColumns(1);
    gridLayout3.setRows(0);
    this.getContentPane().add(datePanel, BorderLayout.NORTH);
    this.getContentPane().add(radioPanel, BorderLayout.WEST);
    this.getContentPane().add(textAreaPanel, BorderLayout.CENTER);
    this.getContentPane().add(buttonPanel, BorderLayout.EAST);
    entryType.add(personalButton);
    entryType.add(businessButton);
    datePanel.add(dateLabel);
    datePanel.add(dateField);
    radioPanel.add(personalButton, null);
    radioPanel.add(businessButton, null);
    textAreaPanel.add(entryArea, null);
    buttonPanel.add(clearButton, null);
    buttonPanel.add(saveButton, null);
    this.getContentPane().add(statusPanel, BorderLayout.SOUTH);
    statusPanel.add(status, null);
    this.pack();
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    private void saveEntry() throws IOException{
    if( personalButton.isSelected())
    String file = "Personal.txt";
    BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
    entryArea.getText();
    bw.write("Date: " + dateField.getText());
    bw.newLine();
    bw.write(entryArea.getText());
    bw.newLine();
    bw.flush();
    bw.close();
    status.setText("Journal Entry Saved");
    else if (businessButton.isSelected())
    String file = "Business.txt";
    BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
    bw.write("Date: " + dateField.getText());
    bw.newLine();
    bw.write(entryArea.getText());
    bw.newLine();
    bw.flush();
    bw.close();
    status.setText("Journal Entry Saved");
    void clearButton_actionPerformed(ActionEvent e) {
    dateField.setText("");
    entryArea.setText("");
    status.setText("");
    void saveButton_actionPerformed(ActionEvent e){
    try{
    saveEntry();
    }catch(IOException error){
    status.setText("Error: Could not save journal entry");
    void personalButton_actionPerformed(ActionEvent e) {
    class JournalFrame_clearButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_clearButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.clearButton_actionPerformed(e);
    class JournalFrame_saveButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_saveButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.saveButton_actionPerformed(e);
    class JournalFrame_personalButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_personalButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.personalButton_actionPerformed(e);
    public class JournalApp {
    public static void main(String args[])
    JournalFrame journal = new JournalFrame();
    journal.setVisible(true);
    }

    Bet you're trying "java JournalFrame" when you need to "java JournalApp".
    Couple pointers toward good code.
    1) Use white space (extra returns) to separate your code into logical "paragraphs" of thought.
    2) Add comments. At a minimum a comment at the beginning should name the file, state its purpose, identify the programmer and date written. A comment at the end should state that you've reached the end. In the middle, any non-obvious code should be commented and closing braces or parens should have a comment stating what they close (if there is non-trivial separation from where they open).
    Here's a sample:
    // JournalFrame.java - this does ???
    // saisoft, 4/18/03
    // constructor
      private void jbInit() throws Exception {
        this.getContentPane().setLayout(borderLayout1);
        radioPanel.setLayout(gridLayout1);
        statusPanel.setLayout(flowLayout1);
        textAreaPanel.setLayout(gridLayout2);
        buttonPanel.setLayout(gridLayout3);
        personalButton.setSelected(true);
        personalButton.setText("Personal");
        personalButton.addActionListener(new JournalFrame_personalButton_actionAdapter(this));
        businessButton.setText("Business");
        status.setText("");
        entryArea.setText("");
        entryArea.setColumns(10);
        entryArea.setLineWrap(true);
        entryArea.setRows(30);
        entryArea.setWrapStyleWord(true);
    } // end constructor
    // end JournalFrame.java3) What would you expect to gain from that inner class? It might be more cool, but would it be more clear? I give the latter (clarity) a lot of importance.

  • Main method not found and how to implement events in an inner class

    How would I put all the event handling methods in an inner class and I have another class that just that is just a main function, but when i try to run the project, it says main is not found. Here are the two classes, first one sets up everything and the second one is just main.
    mport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class JournalFrame extends JFrame {
    private JLabel dateLabel = new JLabel("Date: ");
    private JTextField dateField = new JTextField(20);
    private JPanel datePanel = new JPanel(new FlowLayout());
    BorderLayout borderLayout1 = new BorderLayout();
    JPanel radioPanel = new JPanel();
    JPanel statusPanel = new JPanel();
    JPanel textAreaPanel = new JPanel();
    JPanel buttonPanel = new JPanel();
    GridLayout gridLayout1 = new GridLayout();
    FlowLayout flowLayout1 = new FlowLayout();
    GridLayout gridLayout2 = new GridLayout();
    GridLayout gridLayout3 = new GridLayout();
    JRadioButton personalButton = new JRadioButton();
    JRadioButton businessButton = new JRadioButton();
    JLabel status = new JLabel();
    JTextArea entryArea = new JTextArea();
    JButton clearButton = new JButton();
    JButton saveButton = new JButton();
    ButtonGroup entryType = new ButtonGroup();
    public JournalFrame(){
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    private void initWidgets(){
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(borderLayout1);
    radioPanel.setLayout(gridLayout1);
    statusPanel.setLayout(flowLayout1);
    textAreaPanel.setLayout(gridLayout2);
    buttonPanel.setLayout(gridLayout3);
    personalButton.setSelected(true);
    personalButton.setText("Personal");
    personalButton.addActionListener(new JournalFrame_personalButton_actionAdapter(this));
    businessButton.setText("Business");
    status.setText("");
    entryArea.setText("");
    entryArea.setColumns(10);
    entryArea.setLineWrap(true);
    entryArea.setRows(30);
    entryArea.setWrapStyleWord(true);
    clearButton.setPreferredSize(new Dimension(125, 25));
    clearButton.setText("Clear Journal Entry");
    clearButton.addActionListener(new JournalFrame_clearButton_actionAdapter(this));
    saveButton.setText("Save Journal Entry");
    saveButton.addActionListener(new JournalFrame_saveButton_actionAdapter(this));
    this.setTitle("Journal");
    gridLayout3.setColumns(1);
    gridLayout3.setRows(0);
    this.getContentPane().add(datePanel, BorderLayout.NORTH);
    this.getContentPane().add(radioPanel, BorderLayout.WEST);
    this.getContentPane().add(textAreaPanel, BorderLayout.CENTER);
    this.getContentPane().add(buttonPanel, BorderLayout.EAST);
    entryType.add(personalButton);
    entryType.add(businessButton);
    datePanel.add(dateLabel);
    datePanel.add(dateField);
    radioPanel.add(personalButton, null);
    radioPanel.add(businessButton, null);
    textAreaPanel.add(entryArea, null);
    buttonPanel.add(clearButton, null);
    buttonPanel.add(saveButton, null);
    this.getContentPane().add(statusPanel, BorderLayout.SOUTH);
    statusPanel.add(status, null);
    this.pack();
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    private void saveEntry() throws IOException{
    if( personalButton.isSelected())
    String file = "Personal.txt";
    BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
    entryArea.getText();
    bw.write("Date: " + dateField.getText());
    bw.newLine();
    bw.write(entryArea.getText());
    bw.newLine();
    bw.flush();
    bw.close();
    status.setText("Journal Entry Saved");
    else if (businessButton.isSelected())
    String file = "Business.txt";
    BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
    bw.write("Date: " + dateField.getText());
    bw.newLine();
    bw.write(entryArea.getText());
    bw.newLine();
    bw.flush();
    bw.close();
    status.setText("Journal Entry Saved");
    void clearButton_actionPerformed(ActionEvent e) {
    dateField.setText("");
    entryArea.setText("");
    status.setText("");
    void saveButton_actionPerformed(ActionEvent e){
    try{
    saveEntry();
    }catch(IOException error){
    status.setText("Error: Could not save journal entry");
    void personalButton_actionPerformed(ActionEvent e) {
    class JournalFrame_clearButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_clearButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.clearButton_actionPerformed(e);
    class JournalFrame_saveButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_saveButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.saveButton_actionPerformed(e);
    class JournalFrame_personalButton_actionAdapter implements java.awt.event.ActionListener {
    JournalFrame adaptee;
    JournalFrame_personalButton_actionAdapter(JournalFrame adaptee) {
    this.adaptee = adaptee;
    public void actionPerformed(ActionEvent e) {
    adaptee.personalButton_actionPerformed(e);
    public class JournalApp {
    public static void main(String args[])
    JournalFrame journal = new JournalFrame();
    journal.setVisible(true);
    }

    Here is the complete code (with crappy indentation) :
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    public class JournalFrame extends JFrame {
        private JLabel dateLabel = new JLabel("Date: ");
        private JTextField dateField = new JTextField(20);
        private JPanel datePanel = new JPanel(new FlowLayout());
        BorderLayout borderLayout1 = new BorderLayout();
        JPanel radioPanel = new JPanel();
        JPanel statusPanel = new JPanel();
        JPanel textAreaPanel = new JPanel();
        JPanel buttonPanel = new JPanel();
        GridLayout gridLayout1 = new GridLayout();
        FlowLayout flowLayout1 = new FlowLayout();
        GridLayout gridLayout2 = new GridLayout();
        GridLayout gridLayout3 = new GridLayout();
        JRadioButton personalButton = new JRadioButton();
        JRadioButton businessButton = new JRadioButton();
        JLabel status = new JLabel();
        JTextArea entryArea = new JTextArea();
        JButton clearButton = new JButton();
        JButton saveButton = new JButton();
        ButtonGroup entryType = new ButtonGroup();
        public JournalFrame(){
            try {
                jbInit();
            catch(Exception e){
                e.printStackTrace();
        private void initWidgets(){
        private void jbInit() throws Exception {
            this.getContentPane().setLayout(borderLayout1);
            radioPanel.setLayout(gridLayout1);
            statusPanel.setLayout(flowLayout1);
            textAreaPanel.setLayout(gridLayout2);
            buttonPanel.setLayout(gridLayout3);
            personalButton.setSelected(true);
            personalButton.setText("Personal");
            personalButton.addActionListener(new JournalFrame_personalButton_actionAdapter(this));
            businessButton.setText("Business");
            status.setText("");
            entryArea.setText("");
            entryArea.setColumns(10);
            entryArea.setLineWrap(true);
            entryArea.setRows(30);
            entryArea.setWrapStyleWord(true);
            clearButton.setPreferredSize(new Dimension(125, 25));
            clearButton.setText("Clear Journal Entry");
            clearButton.addActionListener(new JournalFrame_clearButton_actionAdapter(this));
            saveButton.setText("Save Journal Entry");
            saveButton.addActionListener(new JournalFrame_saveButton_actionAdapter(this));
            this.setTitle("Journal");
            gridLayout3.setColumns(1);
            gridLayout3.setRows(0);
            this.getContentPane().add(datePanel, BorderLayout.NORTH);
            this.getContentPane().add(radioPanel, BorderLayout.WEST);
            this.getContentPane().add(textAreaPanel, BorderLayout.CENTER);
            this.getContentPane().add(buttonPanel, BorderLayout.EAST);
            entryType.add(personalButton);
            entryType.add(businessButton);
            datePanel.add(dateLabel);
            datePanel.add(dateField);
            radioPanel.add(personalButton, null);
            radioPanel.add(businessButton, null);
            textAreaPanel.add(entryArea, null);
            buttonPanel.add(clearButton, null);
            buttonPanel.add(saveButton, null);
            this.getContentPane().add(statusPanel, BorderLayout.SOUTH);
            statusPanel.add(status, null);
            this.pack();
            setDefaultCloseOperation(EXIT_ON_CLOSE);
        private void saveEntry() throws IOException{
            if( personalButton.isSelected()){
                String file = "Personal.txt";
                BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
                entryArea.getText();
                bw.write("Date: " + dateField.getText());
                bw.newLine();
                bw.write(entryArea.getText());
                bw.newLine();
                bw.flush();
                bw.close();
                status.setText("Journal Entry Saved");
            else if (businessButton.isSelected()){
                String file = "Business.txt";
                BufferedWriter bw = new BufferedWriter(new FileWriter(file,true));
                bw.write("Date: " + dateField.getText());
                bw.newLine();
                bw.write(entryArea.getText());
                bw.newLine();
                bw.flush();
                bw.close();
                status.setText("Journal Entry Saved");
        void clearButton_actionPerformed(ActionEvent e) {
            dateField.setText("");
            entryArea.setText("");
            status.setText("");
        void saveButton_actionPerformed(ActionEvent e){
            try{saveEntry();}catch(IOException error){
                status.setText("Error: Could not save journal entry");
        void personalButton_actionPerformed(ActionEvent e) {
        class JournalFrame_clearButton_actionAdapter implements java.awt.event.ActionListener {
        JournalFrame adaptee;
        JournalFrame_clearButton_actionAdapter(JournalFrame adaptee) {
            this.adaptee = adaptee;
        public void actionPerformed(ActionEvent e) {
            adaptee.clearButton_actionPerformed(e);
    class JournalFrame_saveButton_actionAdapter implements java.awt.event.ActionListener {
        JournalFrame adaptee;
        JournalFrame_saveButton_actionAdapter(JournalFrame adaptee) {
            this.adaptee = adaptee;
        public void actionPerformed(ActionEvent e) {
            adaptee.saveButton_actionPerformed(e);
    class JournalFrame_personalButton_actionAdapter implements java.awt.event.ActionListener {
        JournalFrame adaptee;
        JournalFrame_personalButton_actionAdapter(JournalFrame adaptee) {
            this.adaptee = adaptee;
        public void actionPerformed(ActionEvent e) {
            adaptee.personalButton_actionPerformed(e);
    }BadLands

  • J2EE Engine startup page error: File [main.jsp] not found in application..

    Hi Guys,
    I have just uninstalled and reinstalled SAP Netweaver 7.01 portal. The uninstall was clean and the reinstall also went without any errors.
    However, immediately after this, when I open http://<host>:<port> I get the following error:
    404   Not Found
    The requested resource /main.jsp is not available
    Details:   File main.jsp not found in application root of alias [/] of J2EE application [sap.com/com.sap.engine.docs.examples].
    If, instead, I open portal (http://<host>:<port>/irj), it works fine.
    Anybody has any idea why this has happened and how can I resolve this issue?
    Thanks,
    Shitij
    Edited by: Shitij Bagga on May 5, 2010 9:36 AM
    Edited by: Shitij Bagga on May 5, 2010 9:37 AM

    Hi Anil,
    I don't see how this note is relevant here. It is just the j2ee engine start page which is not opening. If I go straight to the systeminfo page or the portal login page, they are all working.
    Any experience on this issue with that note u suggested? Please share.
    Thanks,
    Shitij

  • Main-class not found error while clicking on the jar

    I have a created a jar �FinARM.jar� for my swing application using eclipse.
    Clicking on this jar, it is giving the problem main-class not found.
    It contains the MANIFEST.MF file, with entry Main-Class: FinAlignTest for the main class.
    FinAlignTest is my main class.
    I have a similar jar created with a small swing application (Single file) clicking on it can open the swing application.
    It is also attached above.

    Hi ,
    My Apllication runs with out any warnings or errors. But when i create a jar file using eclipse it is giving this problem.
    When i double click on the jar file i am getting this problem. MANIFEST.MF entry contains the main method entry.
    I have created another jar (Which contains a simple java file, swing application) from eclipse export option.
    It works fine on click.
    But jar FinARM.jar contains 5 files (Swing app), which even fetch some data from the database.
    My jar is placein the same machine where it can fetch data from DB
    Can u plese tell me whats the problem.
    -regards
    Anu

  • Pages/pages/pages/main.html not found

    Hi all
    Please accept my apologies if this is a totally daft problem.
    I have a site that will have 3 main pages (for 3 different parts of
    our company) all of which will have a load of sub pages. I had
    thought to have the 3 main pages in the root directory, then have
    all the links in a /pages directory so that the root wasn't all
    clogged up. In dreamweaver, i have my links set up as:
    pages/example.html - but if (after uploading to test) i am on that
    page and attempt to navigate to another page within the pages
    directory eg. a file which in dreamweaver has the link
    pages/example2.html, i get a message saying the file
    pages/pages/example2.html is not found. So I know that it's looking
    for the pages directory relevant to the folder it's in, rather than
    the root folder. Is there any easy way to sort this out? I am
    totally new to web design, so any help would be appreciated.
    Thanks
    Jon

    jonnyozz posted in macromedia.dreamweaver
    > Hi all
    Howdy.
    > dreamweaver, i have my links set up as:
    pages/example.html - but
    > if (after uploading to test) i am on that page and
    attempt to
    > navigate to another page within the pages directory eg.
    a file
    > which in dreamweaver has the link pages/example2.html, i
    get a
    > message saying the file pages/pages/example2.html is not
    found. So
    > I know that it's looking for the pages directory
    relevant to the
    > folder it's in, rather than the root folder. Is there
    any easy way
    > to sort this out?
    If the links are in each file, create your links as document
    relative.
    If the links are in an included file, you may want to use
    site root
    relative.
    > I am totally new to web design, so any help would be
    appreciated.
    Do take some time to learn the basics of HTML and CSS.
    Understanding
    paths is one of the required basics to Web design.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Main class not found error

    hello everybody,
    i m trying to make a executable jar file but its not working but plainly saying main class cannot be found system will exit,
    then i try to bundle the same using the zerog exe wraper but got the same problem, it also gave an error stack
    java.lang.UnsupportedClassVersionError: editor/SBVREditor (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at com.zerog.lax.LAX.launch(DashoA8113)
         at com.zerog.lax.LAX.main(DashoA8113)
    please someone do help me out i m in a great fix,
    thanks in advance..,

    at last managed to run the program in stand alone mode without eclipse [:)]
    the problem was that for swt there is a need of a dll file,
    you can get that file from the swt jar that you are using in your application and place it in the root directory of the project, test it by running your app from your eclipse ide as a java application but not as an swt application,
    the dll file should look like: swt-win32-3138.dll the version no. may vary,
    if the app works fine then go to the next step,
    create a META-INF folder in your root directory and place your MANIFEST.MF in it, now one more imp part comes here
    give your class path before the main class or else it will remove the class path line when the jar will be created.
    if your main class is in some package and thats why giving you a problem then create a simple class in the default package something as launch and call the main method of your entry class from it, the launch class will also be created in the root directory
    now the last thing while giving the path where the jar have to be created give the root directory path only and use the manifest that we created and dont use the generate manifest option
    now after doing all this double click the jar file and your app will run
    P.S. this is not the full way but i have only mentioned the critical part where basically i stuck, so follow these steps and also refer to some other tutorial where there is the full method
    http://www.devx.com/Java/Article/30287/1954?pf=true
    refer to this link also you will understand everything,

  • SPICE Netlist error, element 'that4301:':Not enough terminals for device type 'Tranline'

    Hi as anyone come across the following or a similar error and found a solution?
    SPICE Netlist error, element 'that4301:':Not enough terminals for device type 'Tranline'
    The element that4301 is a vca I imported a model for.

    Here's the model for the VCA:-
    *THAT4301 VCA MACROMODEL
    *CONNECTIONS:
    * Iin - Current Input
    * | Ec+ - Positive Control Port
    * | | Ec- - Negative Control Port
    * | | | Sym - Symmetry Adjust Terminal
    * | | | | Vcc - Positive Supply Voltage
    * | | | | | Vee - Negative Supply Voltage
    * | | | | | | Iout - Current Output
    * | | | | | | | GND
    * | | | | | | | |
    .SUBCKT 4301VCA_THAT P17 P15 P16 P14 P11 P10 P13 P9
    J1 3 P17 1 FET 4
    J2 4 P9 2 FET 4
    CIN P17 P10 50pF
    RS1 1 7 2.4K
    RS2 2 7 2.4K
    I1 P11 7 120uA
    C2 3 4 20pF
    RD1 3 P10 1K
    RD2 4 P10 1K
    GA P11 8 4 3 .001
    RC1 8 0 12.6MEG
    CC 8 5 55pF
    RC2 5 P10 3K
    EA P11 9 8 0 1
    RA 9 10 820
    CZ 9 10 300pF
    Q1 10 10 11 QNPN
    Q2 10 10 12 QNPN
    RE1 11 13 1
    RE2 12 14 0.9
    Q3 P17 P15 13 QPNP
    Q4 P13 P16 14 QPNP
    Q5 P17 P16 15 QNPN
    Q6 P13 P14 16 QNPN
    RE3 15 17 1
    RE4 16 18 0.9
    Q7 19 19 17 QPNP
    Q8 19 19 18 QPNP
    COUT P13 0 35pF
    I2 19 P10 6mA
    IBIAS 0 6 30uA
    Q9 6 6 20 QNPN
    Q10 0 0 20 QPNP
    EBIAS 10 19 6 0 2
    .MODEL FET PJF(VTO=-1.46 BETA=1.67E-4 IS=10E-14)
    .MODEL QNPN NPN(IS=6E-15 BF=250 VAF=95 CJE=7.5pF CJC=2.7pF)
    .MODEL QPNP PNP(IS=4.7E-14 BF=125 VAF=50 CJE=20pF CJC=33pF)
    .ENDS

  • Background Job - Log Not found (in main memory)

    Gents,
    I am triggering a background through an RFC using JOB_OPEN,JOB_SUBMIT & JOB_CLOSE
    the program associated with the Job is put in to execution immly I don't have any problem
    but some Jobs are in Cancelled Status  coz the program was terminated due to the Error Message
    Log not found ( in main memory ) Message Class - BL Message ID - 207 all the cancelled jobs are
    having the same message.
    It's pretty sure that this message is not issued by my background program.How to get rid of this
    is there any SAP Notes.
    Best Regards-Sreeni Anbarasan

    Check out if there has been any update error in VA02 using transaction SM13.
    Lokesh

  • Error in integration Log not found (in main memory)

    Hello Experts,
    We are facing an error at the moment  when we send a contract from CLM to the ERP, we run the transaction BBP_ES_ANALYZE and the error that we got is Log not found (in main memory).
    We already reviewed all master data integration, any other suggestions?
    Also, this integration was working fine at the beginning, but Basis team applied an update to our ERP system and after this it generates this error.
    thanks in advance
    Kind Regards

    Hi,
    Can you check the settings as per blog Debugging MA publish to ERP?
    Unless the activate log is set, BBP_ES_ANALYSE will not be able to provide much information.
    Ashwin

  • Load: class oracle.forms.engine.Main not found Stuck at loading Java Applet

    Hi there
    I have recently installed App Server 10.1.2.0 on a new machine.
    Copied all my forms to an appropriate directory. Set up formsweb.cfg to allow them to run and have attempted to run them.
    Unfortunately I get stuck at the Loading Java Applet screen, and in the status bar at the bottom it says :
    load: class oracle.forms.engine.Main not found
    I have taken a look at the Java Console, and the 2 things that jump out at me are that it appears to be looking for a forms90 directory, which seems odd since I am using App Server 10.1.2.0.2 and Forms Builder 10.1.2.0.2 meaning it should be looking in a forms directory not forms90 directory shouldnt it ?
    And also, it mentions class with no proxy, so on looking around the forums it has been suggested that put the proxy details into jinitiator, which I have done, but this has made no difference either.
    Can anyone suggest anything else please ?
    Java Console log follows.
    Thanks a lot
    Scott
    Oracle JInitiator: Version 1.3.1.9
    Using JRE version 1.3.1.9 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\hilliers
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Unregistered modality listener
    Removed trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,layout=java.awt.BorderLayout]
    Sending events to applet. STOP
    Sending events to applet. DESTROY
    Sending events to applet. DISPOSE
    Sending events to applet. QUIT
    Finding information...
    Releasing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=0
    Caching classloader: sun.plugin.ClassLoaderInfo@d9850
    Current classloader cache size: 1
    Done...
    Registered modality listener
    Referencing classloader: sun.plugin.ClassLoaderInfo@d9850, refcount=1
    Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[oracle.forms.engine.Main,0,0,914x613,invalid,layout=java.awt.BorderLayout]
    Sending events to applet. LOAD
    Sending events to applet. INIT
    Sending events to applet. START
    Determine if the applet requests to install any HTML page
    HTML Installation finished.
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    Opening http://appserver008/forms90/java/oracle/forms/engine/Main.class
    Connecting http://appserver008/forms90/java/oracle/forms/engine/Main.class with no proxy
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    You're a star, thanks.
    In my haste I had cut too much out of my old formsweb.cfg file and not realised I'd done it.
    Thanks Francois.

  • Error "massage not found in main memory"

    While generating report in Portal, I am getting error message.
    'Message Not Found (in main memory) '
    Please help me
    B/R
    Faiz

    No We we didnt get any error in RSRT and not even Portal... It is not reproducible...This error reported by Customer...
    I asked to reisntall Application like I.E / SAP GUI / BEX etc.. She did that but still have the problem....

  • Oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error

    Hi Members,
    I am getting the oracle.forms.engine.Main not found.java.lang.ClassNotFoundException error when trying to access Oracle forms using APEX 2.2.1 and SSO.
    load:class.oracle.forms.engine.Main not found
    The forms have been compiled, forms path setup properly and the setup required to run forms seems to be right. Jinitiator has also been installed.
    I have searched the forums and tried everything. I have checked jinitiator settings, cleared cache and even reinstalled it. Do you have any experience with this error? Appreciate any answers. Thanks.
    Ravi.

    Dear Friends,
    I was also facing the same problem. to solve this, i have uninstalled Oracle Jinitiator. Cleared all the temporary internet files & cookies. Then while running the form, when it asks to install JInitiator, i have specified a different path for jinitiator, For Example, By default it asks for C:\programfiles, i have changed it to c:\manish directory.
    This has solved my problem. Probably this also help you.
    Regards,
    Manish Trivedi,
    India

  • Oracle.forms.engine.Main not found.

    Hi,
    I have a error when I try to call a form made in Forms 6i using 9iAS.
    Seams that something with the settings. Need help please.
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    In my case, on my machine, the codebase virtual directory name is defined as forms60java and is mapped to the Forms_Home\Forms60\Java directory, which is where the f60allxxx.jar files are stored.
    Alias /forms60java/ "D:\Oracle\806\FORMS60\java/"
    Look out for the 6iServer.conf file on the Oracle9iAs installation of Forms. In this file you see the value used in your configuration. Open the formsweb.cfg file (assuming you are using the Forms Servlet) in the forms60/server directory and search for the "codebase" parameter. The value should be the relative path mapping in the 6iServer.conf file.
    You can test if the codebase value works in that you copy an image to the forms60/java directory and call it by
    http:// ..../<forms_mapping>/gifname
    Frank

  • Call Forms Forum from Oracle Forms Main Page - Error 404 Not Found

    Hello !
    The Layout and fuctionality of the Oracle Forms Forum has changed - very nice !
    But it's not possible to call the Oracle Forms Forum
    from the Oracle Forms Main Page !
    Error-message :
    404 Not Found
    OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message.
    Thomas

    Please use the [Post-Upgrade Problems|http://forums.oracle.com/forums/forum.jspa?forumID=587&start=0] to report Forums related problems.
    This is the Forms Forum.
    Tony

Maybe you are looking for

  • How can I copy a picture from Iphoto to a text document?  Currently when I drag and drop the picture is truncated.

    hello Apple community. How can I copy a picure from Iphoto to a blank text document(not Word, but text doc)? Currently when I do this, the picture is truncated. This is more difficult than using a PC! there has to be a better way to copy pictures or

  • Exporting to flash/swf, losing drop shadow?

    Hi guys, when I add drop shadow to 2d text in AE it looks fine in the RAM preview, but when I export to a SWF object its gone.  I tried both the effect and layer style versions of drop shadow.. not really sure what the difference is anyways.  Any ide

  • After losing and restoring datebook files in ver 6.2.2 thoughts

    If the  Datebook.mdb.bak is a backup file couldn't we rename it and since it has 1336   kb instead  of  approx 3000 like the others maybe it would be the correct info from before my crash 3 days ago without all the dupes .If that is correct can I cop

  • Application will not launch

    I have an application called sbcStudio that will not launch.  The Dock icon bounces, nothing happens, but the application is listed when I open Force Quit. This happens every time there is a new OS Software or Security Update.  I'm running Snow Leopa

  • Media Encoder hangs on launch

    Every time I try to launch Adobe Media Encoder CS5 (Version 5.0.1.0 64-bit), it hangs on the title graphic with the message: "Loading ImporterQuickTime.bundle" Left it to do its thing for 30 mins and it's still not responding. Any idea what might be