Source code file name?
By SCJP6,i got that our source file name should be our class name which is public.
if our class is default,can we use any name for source file?
swapnaja wrote:
jverd wrote:
makpandian wrote:
By SCJP6,i got that our source file name should be our class name which is public.
if our class is default,can we use any name for source file?You know, a lot of these questions that you've been tossing off could easily be answered by just writing a tiny bit of code and trying it.++
@OP :Just a small question, are you a Student or employed as a Java Programmer?A professional wouldn't dream of creating classes with names different from the filenames in which they are stored.
Unless MAYBE it's a bunch auto-generated classes for which the sourcefiles are thrown away (used only to feed a compiler) in which case automatic name generation might be easier using just a numeric sequence rather than trying to extract the name from the source stream. But how often have you encountered that scenario?
Of course it's not strictly true that the filename should be equal to the classname.
It should be equal to the unqualified classname, appended with '.java'.
The path is usually contructed from the package name, but that's no requirement even for public classes (just a very handy convention).
Similar Messages
-
Where to put the source code files of servlets
Hello All,
Normally, jsp pages are put under the WEB-INF directory. This makes them secure.
But my application is built on servlets. Should I be putting all my source code
under the web-inf directory.
If I don't will there be some problem?
regards,
Abhi
Hi Abhishek,
You don't need to put servlet's source code to the war.
All you need to put there is compiled code. Files containing
compiled code end with .class.
Regards,
Slava Imeshev
"Abhishek" <[email protected]> wrote in message
news:3d5373e2$[email protected]..
> Normally, jsp pages are put under the WEB-INF directory. This makes them
secure.
> But my application is built on servlets. Should I be putting all my source
code
> under the web-inf directory.
>
> If I don't will there be some problem?
>
> regards,
> Abhi
-
Find source import file name after imports
Hi! We usually import data via Import Manager rather than using MDIS. Now, if I want to verify the file that I have used for the import, where can I find the information? I couldn't see any of these in the Report and Logs in the MDM Console.
Appreciate any help on this.
Cheers!
SFHi Ravi,
This is also an alternative way of doing this if your MDIS services are not running. But Port Concept ideally should be used with MDIS, when you have created and saved Map in Port of MDM console. Is any other Privileges do we get if we do this import using MDM Import manager manually when it can be done automatically using (MDIS) as soon as there is file in MDM Inbound Ready folder. Rightly said by you , yes you can place file in Ready folder through Scripting or PI etc.
@ SF, As per my understanding i agree you can monitor the files using Type =Port during Import Manager but i don't see any benefit of using Processing Type= Manual, if it can be automated using MDIS(if Import Server is running).
@ Sudhanshu, So we can track the files wither port is manual or automatic I don't think we can track whether the file reaches to Archive folder from Ready folder using MDIS or through Import Manager selecting type = Port.
But there is one thing, whenever file disappears from Ready folder and goes to archive folder using MDIS, a log file gets generated in MDIS logs folder so this is one way using which we can come to know when was last file imported through Import server but i think we can not track from Archive folder.
Regards,
Mandeep Saini -
Friends,
I am new in java... Kindly clarify my doubt...
when i create public class i have to give the class name as my file name. but if i create a default class
like
class SimpleClass
i need not give the exact class name as file name.
why?
sorry for my english...Java source code files may contain one and only one top-level (that is, non-nested) public class declaration. The name of the public class must match the source file name.
The java language specification details this here:
http://java.sun.com/docs/books/jls/third_edition/html/packages.html#26783
Obviously if you were permitted more than one top-level class per compilation unit then I suspect you would into problems with access privileges. -
Map source file name in target payload.
Dear All,
I have an interfacing scenario in which I want to populate a IDoc(target) field with the Source xml File Name.
How can I do this in graphical mapping?
If theres a UDF, plz guide me on the code.
Help!!
Thanks.If theres a UDF, plz guide me on the code.
DynamicConfiguration is teh concept that you need and Rajesh has already pointed you to teh blog.
This has been discussed and re-discussed almost every other week. Please run a simple search before raising a query.
Regards
Soumen... -
What Is Usually the Name or Extension Name of an Object Code File in Xcode 4.2?
Hi. I'm relearning how to program and I'd like to know each term I encounter as much as possible. What's usually the name or extension name of an object source code file in the Navigator (the pane on the left) in XCode 4.2? Thank you in advance & advanced merry Christmas.
Gbu.Xcode 4 User Guide ; Xcode Basics Help ; Xcode Release Notes
Happy Holidays -
Old version Source code to .exe file conversion
I have a programming GUI source code (written in an older version of LabVIEW). Can it be supported by LABview Evaluation version 10.0.1 and be converted to an .exe file. How can I convert and use source code file for programming? What do I need to convert and how?
I'm new to LABview. Please help!!2010 can open VIs written in LabVIEW 6.0 or newer. Just double click on the top level VI. You will also need to install any hardware drivers (i.e. GPIB, DAQ, etc) that the old program used.
With the evaluation version, you can create an exe but it will have a watermark on the front panel. -
How to get the source code in PAR file
Hi All,
I used the PAR migration tool to migrate from PAR to EAR file. When I imported the EAR into NWDS 7.3, I was just able to see the structure and jsp files and could not find the java source code files. I would requires the java source code to make modifications so that deprecated APIs can be replaced and to also make the code compatible with JDK 1.6.
I think the original 7.0 PAR file itself does not contain the source code. I decided to use the "Include source code" option when exporting the 7.0 PAR.
I have the portal application DC project in my NWDS 7.0. However, when I try to export the PAR file using Export --> PAR File -- > Next... I am unable to select any project from the list. The list appears blank with disabled Next & Finish buttons.
I also noticed that in the portal DC application structure, there is a .sda file under /gen/default/deploy. Also there is no PAR folder under /gen/default/public.
How do I include the source in the PAR file so that I can edit the same after migrating to EAR format ?
Regards,
MelwynDC and PAR/EAR stuff are different formats, SC/DC is an archive type used by NWDI, if I got it right.
How do I go about generating the PAR file (with source) ?
In fact through including the seources while creating the PAR/EAR in NWDS, but: no need to do that, you can also depack SDA (rename it to zip). If you wanna just see the Java sources you will find them there, otherwise decompile as Vijay already sad.
cheers -
Reg: File name in receiver FILE adapter
Hi Experts,
i have Scenario proxy to file
from source side i got input values in one field(long String). in the target side i need to split that field
finallly i need get the out put file like this
q2344eretrnnsd sewewerereefre wereretrtrtreeterte ertrterwytdyt rtretyeytyutueyt
sdgfghfhyghhjhj sdfgfdhdghgjgjh sdfgdfhgfhjgjgjfgh dfgdhdgghgh dfghfgfgfgfgfgf
sfdggggggggddf sdfdfsddfdfdfdfd sdfdfdfdfdfddfdfs sdfsdfdfdsfd asdfsdafdsfds
the problem is while place file in the target directory the file need save as according to the "version no" (it is included in the long string of source field)
file name should be change according to the "version no"
so please suggset to me how can i change the file name according to the version no which is include in the long string in the source side
Thanks in advanceHi Mani kandan,
thanks for the reply can you please tell me one more thing in FCC
source side we have only one field which is long string so we need put the value of that field in to the below format in target location
source (field value==<line>sapsdnforumsprocessintigration</line>) ocurs multiple times
in target file it has to appear as in below format.
sap sdnforums processintegration
sap sdnforums processintegration
sap sdnforums processintegration
sap sdnforums processintegration
please suggest wat type of file cotent conversion parameter rquired to achive this in the receiver communication channel
Thanks in advance
Edited by: katakoti on May 17, 2011 8:44 AM
Edited by: katakoti on May 17, 2011 9:28 AM -
How to generate Flow Chart from Program Source Code easily and automatically.
It is very crucial to have a clear mind when faced with abstract codes for software engineers and program developers. As always, the programmers have had an overall structure in your mind and then process the design with source code. The structure can somehow be so complex that it becomes hard to cope with gradually. More often than not, you will get stuck when you process to some extent. However, codes can’t speak and present themselves in a straightforward way. You are eager to find out a straightforward layout to transfer those abstract codes to visible flowchart, aren’t you? Do you know there's code to flowchart software tools online? This tool can help you make a flowchart from source code automatically, here I will introduce you a great code to flowchart converter software.
Code Flowchart Creator is professional source code to flowchart software tool. This software is designed for programmers or document writers, and its main function is to generate flow chart from source code such as C, C++, VC++ (Visual C++ .NET) and Delphi (Object Pascal) programming files. It helps users to understand complex program structures by visual diagrams. When users are editing the source code, it can make a flowchart or NS chart according to that code, the source code will be analyzed to build a visible flowchart that can help users get familiar with the process of the program. The created flowchart can be exported as Visio/Word/BMP files. And it works well on all Windows OS, especially on Windows 7.
Below is simple guide on how to use the Flowchart Converter. Step 1: Free download the setup file on official website: http://www.flowchart-creator.com Step 2: Install it on PC and startup the Flowchart Creator Step 3: Open a source code file and it will automatically generate the Flow Chart on right Window. Actually, the Flowchart Creator is very easy to use even without any experience. If you want to get more details and advanced setting, please visit the website to get tech info and support. Moreover, it also provides users with browsing and navigation functions. Those functions will facilitate the process of programmer and come to great help to both senior and junior programmers. The generated flowchart can be used to review source code. It will help examine the whole process of a program and check where errors exist when users are verifying source codes. You will never be worried about the complex program structure with the powerful code to flowchart creator tool.Dear Chuck,
I have used Google and other search engines intensively since years. What I need (and this is why I've opened this thread actually) is a suggestion for a product from someone that has already used it. That could also save me time instead of searching, installing, trying, and eventually deinstalling at random. After all, the forum should allow to exchange knowledge and experience with people having similar interests. -
Compiling IVI-C driver source code
I'd like to make some fixes into source code of IVI-C driver 'cause I have found some SCPI-command bugs in there.
What are main steps in compiling the source code, which library function I must include (VISA-library?)?.
I'm using LabView 7.1 and the driver in question is agpsgmxg (source code file is agpsgmxg.c) which I have downloaded from NI's idnet.
I have MS Visual Studio environment.In CVI you would use Ctrl+K for compiling and then you would re-create the DLL and replace or rename it the existing one that is in IVI/Bin or IVIFoundation/Bin. Can you send feeback to [email protected] mentioned with the bugs found in the driver? So we can document and look into the issue?
-
S960 / Vibe X Android 4.4 Kitkat Source Code
Where is Kitkat source code??? On link http://support.lenovo.com/en/products/phones/s-series/s960-smartphone
is only file from 11/18/2013. Please update!slovakia wrote:
Where is Kitkat source code??? On link http://support.lenovo.com/en/products/phones/s-series/s960-smartphone
is only file from 11/18/2013. Please update!
I don't understand. The source code file is there for download.
Edit: Oh, so this is not KitKat but earlier version... Now I see. Let me get our eSupport team to check on this...
WW Social Media
T61, T410, x240, Z500, Flex 14
Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
Follow @LenovoForums on Twitter!
How to send a private message? --> Check out this article.
English Community Deutsche Community Comunidad en Español Русскоязычное Сообщество -
How do I redesign Source Code on Dreamweaver?
Hello everyone,
I currently am doing a voulenteer website (they said they will let me intern for them if I do this, I am not getting paid since I volunteered). Little did I know that the client had a website that was done by another company and would like me to redesign it.
I thought no problem, I can manage, but now its stressing me out.
The company sent me a "Source Code File" on the website and I just do not know where to begin.
The Zip file cotains:
Five folders: Content, CSS, Images, Pages, Script
There are also three items: Custom.css, Index.html, Main.css
I do not want to let them down, all my experience is wordpress and I have 3 weeks to work on redesigning the website. Supposedly, I cannot use wordpress because they want to charge the client an extra 1k if I do wordpress because they have to link the content.
I would really appreciate an experts advice on how to begin redesigning and how long might it take. I understand only basic coding so the file is not too scary its just the CSS and the other tabs when I open the index in dreamweaver which have me worried.
Sorry if I am making no sense, I am just really stressing on this one website. When I said web design I wanted to start from scratch...I look forward to hearing from you all.
Thanks!So for the website should I make buttons myself or just use html for them?
The entirely depends on you. Fact is, the easiest 'button" to make is:
<a href="#">click here</a>
In other words, it's a simple link.
But you can style navigation and use backgrounds and divs to create button-like navigation:
Here's the navigation I did for one website (html):
<div id="navigation">
<nav>
<ul id="menu">
<li><a href="../index.html">Home</a></li>
<li><a href="../about.html">About</a>
<li><a href="../connect.html">Connect</a></li>
</ul>
</nav>
</div>
And the CSS for the above, which creates a drop-down menu structure using CSS3 elements. The navigation is very button-line and works great:
@charset "UTF-8";
/* CSS Document */
/* Main */
#menu
width: 100%;
margin: 0;
padding: 10px 0 0 0;
list-style: none;
background: #f6d78d;
background: #fbf6f6; /* Old browsers */
/* IE9 SVG, needs conditional override of 'filter' to 'none' */
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d 3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc 2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiB ncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogI CAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiZjZmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3R vcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2Y2ZDc4ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZ mZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2Y0Y2M2ZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ 9IjEwMCUiIHN0b3AtY29sb3I9IiNmYmY2ZjYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+C iAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJ hdGVkKSIgLz4KPC9zdmc+);
background: -moz-linear-gradient(top, #fbf6f6 0%, #f6d78d 50%, #f4cc6e 51%, #fbf6f6 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbf6f6), color-stop(50%,#f6d78d), color-stop(51%,#f4cc6e), color-stop(100%,#fbf6f6)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #fbf6f6 0%,#f6d78d 50%,#f4cc6e 51%,#fbf6f6 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #fbf6f6 0%,#f6d78d 50%,#f4cc6e 51%,#fbf6f6 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #fbf6f6 0%,#f6d78d 50%,#f4cc6e 51%,#fbf6f6 100%); /* IE10+ */
background: linear-gradient(top, #fbf6f6 0%,#f6d78d 50%,#f4cc6e 51%,#fbf6f6 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbf6f6', endColorstr='#fbf6f6',GradientType=0 ); /* IE6-8 */
-moz-border-radius: 50px;
border-radius: 50px;
-moz-box-shadow: 0 2px 1px #9c9c9c;
-webkit-box-shadow: 0 2px 1px #9c9c9c;
box-shadow: 0 2px 1px #9c9c9c;
#menu li
float: left;
padding: 0 0 10px 0;
position: relative;
#menu a
float: left;
height: 25px;
padding: 0 15px;
color: #000;
text-transform: uppercase;
font: bold 14px/25px Arial, Helvetica;
text-decoration: none; /*text-shadow: 0 1px 0 #000;*/
#menu li:hover > a
color: #3c2764;
*html #menu li a:hover /* IE6 */
color: #3c2764;
#menu li:hover > ul
display: block;
/* Sub-menu */
#menu ul
list-style: none;
margin: 0;
padding: 0;
display: none;
position: absolute;
top: 35px;
left: 0;
z-index: 99999;
background: #f6d78d;
background: -moz-linear-gradient(#f6d78d, #fbf6f6);
background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #fbf6f6),color-stop(1, #f6d78d));
background: -webkit-linear-gradient(#f6d78d, #fbf6f6);
background: -o-linear-gradient(#f6d78d, #fbf6f6);
background: -ms-linear-gradient(#f6d78d, #fbf6f6);
background: linear-gradient(#f6d78d, #fbf6f6);
-moz-border-radius: 5px;
border-radius: 5px;
#menu ul li
float: none;
margin: 0;
padding: 0;
display: block;
-moz-box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
-webkit-box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
#menu ul li:last-child
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
#menu ul a
padding: 10px;
height: auto;
line-height: 1;
display: block;
white-space: nowrap;
float: none;
text-transform: none;
*html #menu ul a /* IE6 */
height: 10px;
width: 150px;
*:first-child+html #menu ul a /* IE7 */
height: 10px;
width: 150px;
#menu ul a:hover
background: #F2C14F;
background: -moz-linear-gradient(#EFD08D, #F2C14F);
background: -webkit-gradient(linear, left top, left bottom, from(#EFD08D), to(#F2C14F));
background: -webkit-linear-gradient(#EFD08D, #F2C14F);
background: -o-linear-gradient(#EFD08D, #F2C14F);
background: -ms-linear-gradient(#EFD08D, #F2C14F);
background: linear-gradient(#EFD08D, #F2C14F);
#menu ul li:first-child a
-moz-border-radius: 5px 5px 0 0;
border-radius: 5px 5px 0 0;
#menu ul li:first-child a:after
content: '';
position: absolute;
left: 30px;
top: -8px;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 8px solid #444;
#menu ul li:first-child a:hover:after
border-bottom-color: #F2C14F;
#menu ul li:last-child a
-moz-border-radius: 0 0 5px 5px;
border-radius: 0 0 5px 5px;
/* Clear floated elements */
#menu:after
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
* html #menu { zoom: 1; } /* IE6 */
*:first-child+html #menu { zoom: 1; } /* IE7 */ -
Set application file name in source code
Hello,
in some projects i use the same software, only with different interfaces, or sometimes with customized panels. Within the sourcecode i just activate or deactivate the functions i need with defines, f.e: #define USE_TCP...and #ifdef USE_TCP...........#endif.
Is it possible to set the application name in source code (instead of BUILD -> TARGET SETTINGS) ?.
I'm lookink for something like
#idfef UART_TARGET........project_uart.exe
#elif defined TCP_TARGET........project_tcp.exe
#else ............... project_standard.exe
#endif
in other compilers (for microcontrollers) i can do something like this with #EXPORT (HEX, FILE=HEX_FILENAME)
Any ideas?
Thanks and greetings from Bremerhaven, Germany
Norbert RieperOhh....
Well there is the :
CVI_AppBuildProject (CAObjHandle objectHandle, ERRORINFO
*errorInfo, long *returnValue);
But it's only for build with no names support , that's what I know but maybe there is something else which I don't know of.....
One more thing - At the menu Build > Builed Steps
there you can define your options at 3 stages :
Custom Build Actions—Actions that occur immediately before
LabWindows/CVI starts dependency checking after you initiate a build.
Pre-build Actions—Actions that occur after LabWindows/CVI
checks for dependencies and before it builds the target. Pre-build actions occur
only when the target needs to be built.
Post-build Actions—Actions that occur after the target is
built. Post-build actions occur only when a build is successful.
Try over there maybe it will help you....
Kobi Kalif
Software Engineer -
Accessing comapny code from the source file name
Hi,
Iam doing FILE FILE to scenario.
My source file name is XXXX237061606.txt. (XXXX is company code)
My requirement is
Based on company code from the source file name; I need to send the file to the corresponding receiver.
How to retrieve the company code from the source file name?
Thanks,
Hem.hem chand wrote:>
> Hi Varun,
>
> Could u please provide me detailed procedure to get the company code.
>
> Reg,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
This will get you the File name...TRuncate it to extract company code...
Then have a mapping program with the receivers message type which is persent under SAP BASIS component....
There map to the required receiver by getting the file name above..
Create an int mapping for the above mapping and use that in ur enhanced recv determination
Maybe you are looking for
-
How to sync contacts with Google Voice?
Hey everyone, I'm pretty new to the Desktop Software and need a little help. I have had my bb for over 2 years now, but I have never used the DT software for anything but a full back up do a full reset of my phone. So he is the situation. I just si
-
I updated my OS X and iTunes today and when I restarted my mac, safari got messed up. No matter how many times I change the preference of the new windows and tabs to favorites and remove the homepage site, it always get back to what it was-- homepage
-
Change full name in iCloud mac mail
How do I change a Full Name in iCloud mac mail?
-
Can you use multiple Apple TVs in a single location?
I have a client who wishes to put 4 monitors in a meeting room environment. They would like the ability to play the same image on all four monitors, as well as the option to play different things on separate monitors at the same time. Will Apple TV w
-
Hello there, I am new to ODI and I had a couple of questions about the profiles. I would like to know what profile(s) i need to assign in order to allow a developer to work in a given repository/project without being able to change a data model. I ne